Metadata-Version: 2.1
Name: nonebot-plugin-arcaea-sticker
Version: 0.2.4
Summary: Arcaea sticker generator plugin for NoneBot2
Author-Email: JQ-28 <480352716@qq.com>
License: MIT
Project-URL: Homepage, https://github.com/JQ-28/nonebot-plugin-arcaea-sticker
Project-URL: Repository, https://github.com/JQ-28/nonebot-plugin-arcaea-sticker
Requires-Python: >=3.8
Requires-Dist: nonebot2>=2.0.0
Requires-Dist: nonebot-adapter-onebot>=2.0.0
Requires-Dist: nonebot-plugin-htmlrender>=0.2.0
Requires-Dist: Pillow>=9.0.0
Requires-Dist: jinja2>=3.0.0
Description-Content-Type: text/markdown

# Nonebot Plugin Arcaea Sticker

<div align="center">

# Arcaea 表情包生成器

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


<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
<a href="https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=sy5x0Bv8IJoMVviC3dRbXTVD9zLdpitx&authKey=OPfY0G2zfQwDQJmf5xV5cqJq7c6%2Beg1cqiCF%2BDHsSFEaGscmeo5ALIdyJ%2BYZmoJb&noverify=0&group_code=806446119">
  <img src="https://img.shields.io/badge/QQ群-806446119-pink" alt="QQ Chat Group">
</a>

<br />

<a href="https://pydantic.dev">
  <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/pyd-v1-or-v2.json" alt="Pydantic Version 1 Or 2" >
</a>
<a href="./LICENSE">
  <img src="https://img.shields.io/github/license/Agnes4m/nonebot_plugin_pjsk.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-arcaea-sticker">
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-arcaea-sticker.svg" alt="pypi">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-arcaea-sticker">
  <img src="https://img.shields.io/pypi/dm/nonebot-plugin-arcaea-sticker" alt="pypi download">
</a>

<br />

<a href="https://registry.nonebot.dev/plugin/nonebot-plugin-arcaea-sticker:nonebot_plugin_arcaea_sticker">
  <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin%2Fnonebot-plugin-arcaea-sticker" alt="NoneBot Registry">
</a>
<a href="https://registry.nonebot.dev/plugin/nonebot-plugin-arcaea-sticker:nonebot_plugin_arcaea_sticker">
  <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnbbdg.lgc2333.top%2Fplugin-adapters%2Fnonebot-plugin-arcaea-sticker" alt="Supported Adapters">
</a>

</div>

## 📖 介绍

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

![](https://github.com/JQ-28/nonebot-plugin-arcaea-sticker/blob/main/nami%E9%BE%99%E7%AC%94!%E9%BE%99%E7%AC%94!.png)

## 💿 安装
### 以下提到的方法 任选其一 即可
#### [推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
```bash
nb plugin install nonebot-plugin-arcaea-sticker
```

#### 使用包管理器安装
1. 使用 pip 安装插件：
```bash
pip install nonebot-plugin-arcaea-sticker
```

2. 在 NoneBot2 项目的 `pyproject.toml` 文件中添加插件：
```toml
[tool.nonebot]
plugins = ["nonebot_plugin_arcaea_sticker"]
```

## ⚙️ 配置

在 NoneBot2 项目的 `.env` 文件中添加以下配置：

```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](LICENSE) 许可证开源。

**注意事项：**
- 本项目代码使用 MIT 许可证开源，您可以自由使用和修改代码
- 项目中的表情包素材来源于 [Xestarrrr](https://x.com/Xestarrrr)
- 本项目基于 [arcaea-stickers](https://github.com/Rosemoe/arcaea-stickers) 项目开发
- 请遵守原始素材的使用条款和限制

## 🙏 鸣谢

- [Xestarrrr](https://x.com/Xestarrrr) - 原始表情包素材创作者
- [arcaea-stickers](https://github.com/Rosemoe/arcaea-stickers) - 网页版表情包生成器
- [nonebot-plugin-pjsk](https://github.com/lgc-NB2Dev/nonebot-plugin-pjsk) - 参考了部分代码
- [NoneBot2](https://github.com/nonebot/nonebot2) - 跨平台 Python 异步机器人框架

## 📞 联系
ღ互联网小猫窝ღ  
QQ 群: 806446119 (Bot群，欢迎来玩)

JQ-28
QQ：480352716