nonebot-plugin-xianmei
向本群群主自动献媚的娱乐插件——为本群桃神(B站主播「小小桃纸哟」)量身定制的彩虹屁机器人。群主在群里出现时,自动随机发送一条谄媚文案(内置 5200 条,玩主播本人梗)。
功能
- 群主(桃神)在群里出现时,先播报「🔔 检测到 XX 出现!」「🫡 开始献媚!」,再自动随机发送一条献媚彩虹屁
- 冷却时间(默认 30 分钟)与每日封顶(默认 5 条)防刷屏
- 全部管理命令仅限 superuser
- 多群独立配置
安装
pip install nonebot-plugin-xianmei
并在 NoneBot 配置中加载插件(pyproject.toml 的 [tool.nonebot] 或 bot 的 load_plugin)。
使用方法
| 指令 | 权限 | 范围 | 说明 |
|---|---|---|---|
/献媚设置群主 <QQ号> |
superuser | 群聊 | 绑定本群群主(桃神)QQ |
/献媚设置上限 <N> |
superuser | 群聊 | 设置每日献媚条数上限(1~100) |
/献媚设置冷却 <分钟> |
superuser | 群聊 | 设置触发冷却时间(1~1440 分钟) |
/献媚开关 |
superuser | 群聊 | 开关本群献媚功能 |
/献媚状态 |
superuser | 群聊 | 查看本群配置与今日已发数量 |
/献媚预览 |
superuser | 群聊 | 随机预览一条献媚文案 |
命令需要 NoneBot 配置
command_start=["/"](默认即为/)。群聊中发送时作用于当前群;私聊发送时第一个参数必须是群号,如
/献媚设置群主 123456 6867955、/献媚状态 123456。
数据存储于运行目录 data/xianmei/state.json(每群独立,自动生成)。
文案风格
每条 10~30 字,梗来自桃神直播间:五冠王、头部主播、出货/老演员、堵门抽卡、抽到三点多、星露谷、理性消费「不买资格」等。文案由 scripts/gen_quips.py 生成,可改语料后重新生成。
示例
桃神:大家晚上好
机器人:桃神一出场,群规都得给你面子!
许可证
MIT
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_xianmei-0.1.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_xianmei-0.1.0.tar.gz
- Upload date:
- Size: 186.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b332f1fba0f29edd06ea69586fbc789113adce6edf5489ea06c9eb305c788d5f
|
|
| MD5 |
008fb06386a2a4416a6dbc4b742dd2ab
|
|
| BLAKE2b-256 |
e0a13168a6cab23f42cfa00654beb3f1c9bfae5205751cd30603e1a56e5e58b7
|
File details
Details for the file nonebot_plugin_xianmei-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_xianmei-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6544d69b61cb62fd3b884cc589fe9132298e895acd6027d8106433ab5524386c
|
|
| MD5 |
43c07234c26208e2e161b6536d813b1e
|
|
| BLAKE2b-256 |
94068911a42328cde570222e5e1e1f5a96cc2b9a6d7ab8d7fc7aa849eea271e3
|