Arcaea sticker generator plugin for NoneBot2
Project description
Nonebot Plugin Arcaea Sticker
📖 介绍
本插件可以生成 Arcaea 风格的表情包,支持自定义文字、位置、角度、颜色等参数。
💿 安装
以下提到的方法 任选其一 即可
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
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
# 是否使用缓存
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 项目开发
- 请遵守原始素材的使用条款和限制
🙏 鸣谢
- Xestarrrr - 原始表情包素材创作者
- arcaea-stickers - 网页版表情包生成器
- nonebot-plugin-pjsk - 参考了部分代码
- NoneBot2 - 跨平台 Python 异步机器人框架
📞 联系
ღ互联网小猫窝ღ
QQ 群: 806446119 (Bot群,欢迎来玩)
JQ-28 QQ:480352716
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.2.8.tar.gz.
File metadata
- Download URL: nonebot_plugin_arcaea_sticker-0.2.8.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 |
bfe05fba147cb807efd30e820164228384269689c197c71c293ab9a9a210644d
|
|
| MD5 |
8febb4340949821c63c728406ce350eb
|
|
| BLAKE2b-256 |
a9912710aee9005b91fa42341568feef0b1ef5b4ee0a45fbcf48ba47fba2f565
|
File details
Details for the file nonebot_plugin_arcaea_sticker-0.2.8-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_arcaea_sticker-0.2.8-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 |
b96ff413b59e3502548f2d8eb2a5d1ea33d63193c8940a8f6e8d8f1ad552550c
|
|
| MD5 |
bded590b297bfbf7c513fcbeaeab1cdf
|
|
| BLAKE2b-256 |
53538360b1623c96325245a3248332de5a35bea00ea84a78e140e6bb13e9dde5
|