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.4.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.4-py3-none-any.whl (36.8 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.2.4.tar.gz
Algorithm Hash digest
SHA256 2a640c5584cba0eeff461da86655ba1721a985e8c93b765b822f90e667fbcf51
MD5 1b39814cc142d89fdda1ce77df5bbefd
BLAKE2b-256 319c9c2418342cef06921ee5b5b96e49b0cfc203c8f2bb974f1fcf27108005b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b417b97e0bb8880aacc89a00ec7a9bdeb7fb2323f33b714fa0012acee5834f5
MD5 78d00d9a8eb0bf11c54e8a3317971646
BLAKE2b-256 bdd45d1e912a25c65bbc4eda7933c1b8a845ce6cab2c2b540d25f14cf1d3f453

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