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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ac8ad33bb5dd035acebe5b227b8e3968c064971306e9926a1678c7b940d1bff
MD5 b2dba8102bc9cc7983fa9dc90dbb39fe
BLAKE2b-256 805aa4984ce91054d2986e841e7d1047e52ac8457539320d208201a8ffd1af00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_arcaea_sticker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a529eae1ca5195ecff652e80e62aa349946bd1c62e3aa457333e48552095a4a3
MD5 ce483e75b7f5893076bc2a307aa15cf1
BLAKE2b-256 717aaeeb80c39479997da47a16503860f9abd82a7ff78a00e8b504c0c36d7a98

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