Skip to main content

Arcaea sticker generator plugin for NoneBot2

Project description

Nonebot Plugin Arcaea Sticker

Arcaea 表情包生成器

✨ 基于 NoneBot2 的 Arcaea 表情包生成插件 ✨

python QQ Chat Group
Pydantic Version 1 Or 2 license pypi pypi download
NoneBot Registry Supported Adapters

📖 介绍

本插件可以生成 Arcaea 风格的表情包,支持自定义文字、位置、角度、颜色等参数。

💿 安装

以下提到的方法 任选其一 即可

[推荐] 使用 nb-cli 安装

在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

nb plugin install nonebot-plugin-arcaea-sticker

使用包管理器安装

  1. 使用 pip 安装插件:
pip install nonebot-plugin-arcaea-sticker
  1. 在 NoneBot2 项目的 pyproject.toml 文件中添加插件:
[tool.nonebot]
plugins = ["nonebot_plugin_arcaea_sticker"]

⚙️ 配置

在 NoneBot2 项目的 .env 文件中添加以下配置:

# 是否回复消息
arcaea_reply=true
# 是否使用缓存
arcaea_use_cache=true

🎮 使用方法

基础指令

  • arc <角色> <文字> - 生成表情包
  • arc -h - 显示帮助
  • arc - 进入交互模式

自定义参数(都是可选的)

  • -s, --size <大小> - 文字大小 (20~45,默认35)
  • -x <位置> - 横向位置 (0~296,默认148)
  • -y <位置> - 纵向位置 (0~256,默认128)
  • -r, --rotate <角度> - 旋转角度 (-180~180,默认-12)
  • -c, --color <颜色> - 文字颜色 (十六进制,默认角色专属颜色)

使用示例

arc luna 好耶!                         # 基础用法
arc hikari "第一行\n第二行" -s 45         # 多行文字
arc tairitsu 开心 -x 150 -y 100 -r -20  # 调整位置和角度

📝 功能特点

  • 支持生成 Arcaea 角色的表情包
  • 支持命令模式和交互模式
  • 支持自定义文字、位置、角度、颜色等参数
  • 支持多行文本和自动换行
  • 智能文字大小调整
  • 支持中文角色名称

🔧 依赖

  • Python 3.8+
  • NoneBot2
  • nonebot-plugin-htmlrender
  • Playwright

📄 开源许可

本项目基于 MIT 许可证开源。

注意事项:

  • 本项目代码使用 MIT 许可证开源,您可以自由使用和修改代码
  • 项目中的表情包素材来源于 Xestarrrr
  • 本项目基于 arcaea-stickers 项目开发
  • 请遵守原始素材的使用条款和限制

🙏 鸣谢

📞 联系

ღ互联网小猫窝ღ
QQ 群: 806446119 (Bot群,欢迎来玩)

JQ-28 QQ:480352716

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_arcaea_sticker-0.2.3.tar.gz (36.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_arcaea_sticker-0.2.3-py3-none-any.whl (36.8 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_arcaea_sticker-0.2.3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.2.3.tar.gz
Algorithm Hash digest
SHA256 926dddbde6de4247491034b269b84878782e2d40cd51a2bc1cc93c30e883ef35
MD5 2d817f49ad89fff4838ad62f35f1f907
BLAKE2b-256 da2d3ac4b1c2a4afd0e61d101c7e401a17bd68177e168df1dc3ab258a9a4f12d

See more details on using hashes here.

File details

Details for the file nonebot_plugin_arcaea_sticker-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2303e8867dafcb1df3f2b608d7ef8613a238b288bedbe651bbcc83099610f8
MD5 ed191e33fe7a9450174a73c6179057d1
BLAKE2b-256 a057425b404210ee1157ffa6065674222984065ad9bc67766e87a6e15272c9fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page