Arcaea sticker generator plugin for NoneBot2
Project description
📖 介绍
本插件可以生成 Arcaea 风格的表情包,支持自定义文字、位置、角度、颜色等参数。
💿 安装
方式一:使用 nb-cli 安装(推荐)
nb plugin install nonebot-plugin-arcaea-sticker
方式二:使用包管理器安装
- 使用 pip 安装插件:
pip install nonebot-plugin-arcaea-sticker
- 在 NoneBot2 项目的
pyproject.toml文件中添加插件:
[tool.nonebot]
plugins = ["nonebot_plugin_arcaea_sticker"]
⚙️ 配置
在 NoneBot2 项目的 .env 文件中添加以下配置:
# 是否回复消息
arcaea_reply=true
🎮 使用方法
基础指令
arc <角色> <文字>- 生成表情包arc -h- 显示帮助arc- 进入交互模式
自定义参数(都是可选的)
| 参数 | 说明 | 范围 | 默认值 | 补充说明 |
|---|---|---|---|---|
-s, --size |
文字大小 | 20~45 | 35 | 数字越大文字越大,多行文字建议25-35 |
-x |
横向位置 | 0~296 | 148 | 0=最左边,148=居中,296=最右边 |
-y |
纵向位置 | 0~256 | 128 | 0=最上方,128=居中,256=最下方 |
-r, --rotate |
旋转角度 | -180~180 | -12 | 正数顺时针,负数逆时针,建议-30~30度 |
-c, --color |
文字颜色 | 十六进制 | 角色专属 | 支持#ff0000或ff0000格式 |
-w, --stroke-width |
描边宽度 | 整数 | 9 | 文字边框的粗细 |
-C, --stroke-color |
描边颜色 | 十六进制 | 自动生成 | 默认比文字颜色深30% |
💡 提示: 文字包含空格需要加引号,换行使用\n
使用示例
arc luna 好耶! # 基础用法
arc hikari "第一行\n第二行" -s 45 # 多行文字
arc 17 喜欢... -x 150 -y 100 -r -20 # 调整位置和角度
arc nami "龙笔!" -c ff0000 # 自定义红色文字
arc eto "Ciallo~(∠・ω<)⌒☆" -s 30 -c #fdae92 -r -28 -x 120 -y 80 # 组合多个参数
📝 功能特点
- ✅ 支持生成 Arcaea 角色的表情包
- ✅ 支持命令模式和交互模式
- ✅ 支持自定义文字、位置、角度、颜色等参数
- ✅ 支持多行文本和自动换行
- ✅ 智能文字大小调整
- ✅ 支持中文角色名称
🔧 依赖
- Python
- NoneBot2
- nonebot-adapter-onebot
- nonebot-plugin-htmlrender
- nonebot-plugin-localstore
- Playwright
📄 开源许可
本项目基于 MIT 许可证开源。
注意事项:
- 本项目代码使用 MIT 许可证开源,您可以自由使用和修改代码
- 项目中的表情包素材来源于 Xestarrrr
- 本项目基于 arcaea-stickers 项目开发
- 请遵守原始素材的使用条款和限制
🙏 鸣谢
- Xestarrrr - 原始表情包素材创作者
- arcaea-stickers - 网页版表情包生成器
- nonebot-plugin-pjsk - 参考了部分代码
- NoneBot2 - 跨平台 Python 异步机器人框架
📞 联系
| ღ互联网小猫窝ღ(Bot群,欢迎来玩) | JQ-28 |
| QQ群:806446119 | QQ:480352716 |
第一次写代码,比较史,请见谅,如有问题或建议请直接发issue,我会尽量解决
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_arcaea_sticker-0.3.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_arcaea_sticker-0.3.2.tar.gz
- Upload date:
- Size: 36.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.21.0 CPython/3.11.8 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f7dccc4e2f66ab8414fe7a27f7c124742b1fd66a49c45a576e5bb7cb39283a0
|
|
| MD5 |
9065c4294d666c9946bb9be91bb41163
|
|
| BLAKE2b-256 |
4e4dbb063e2af2a2c766cc183bcd045987f27fcd05ec45495c8b6c07c6b79438
|
File details
Details for the file nonebot_plugin_arcaea_sticker-0.3.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_arcaea_sticker-0.3.2-py3-none-any.whl
- Upload date:
- Size: 36.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.21.0 CPython/3.11.8 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1061f9e9c45bc6cc6eaaa709aa1b27ee6e6d27e63bf5c102c03855fafc28982d
|
|
| MD5 |
a915c852fd0f116c38b29ef62fdce422
|
|
| BLAKE2b-256 |
e89afe43cb771ff70fb257ba43e2f736cd7df07e0c63afcf38ab9ec4748abe84
|