Skip to main content

Arcaea sticker generator plugin for NoneBot2

Project description

Arcaea 表情包生成器

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

python pypi pypi download

QQ Chat Group Pydantic Version 1 Or 2 license

示例图片

📖 介绍

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

💿 安装

方式一:使用 nb-cli 安装(推荐)

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 项目开发
  • 请遵守原始素材的使用条款和限制

🙏 鸣谢

📞 联系

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

第一次写代码,比较史,请见谅,有使用chatgpt优化

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.2.9.tar.gz
Algorithm Hash digest
SHA256 a8f3e5bbbded8445a4162ba4a8fad1fce34c3d1eed8bade820226e2aee9c877b
MD5 181b4b7f923db7a42b847d0cfdb8230b
BLAKE2b-256 ae8c6c066db700e98ce4e7578c323bcd82d6c0dfdac0da6e0befc576e1daf5e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f5618be64b896715fadd40a8b9f8de81029e4305e00bd805f16736a459f787a5
MD5 dc1de3d4d00d05a2dcbc788516e47587
BLAKE2b-256 b168c434f13b4936f1af35cac79bf2e3d5fd1d5da0fd344ce19d8f09bce5e468

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