Skip to main content

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=["/"](默认即为 /)。

群聊中发送:省略群号,直接作用于当前群,如 /献媚设置群主 6867955。

私聊发送:第一个参数必须是群号,格式为 /献媚设置群主 <群号> <QQ号>。例如 /献媚设置群主 123456 6867955 中,123456 是群号,6867955 是群主(桃神)的 QQ 号。其余命令同理,如 /献媚状态 123456、/献媚设置上限 123456 10。

数据存储于运行目录 data/xianmei/state.json(每群独立,自动生成)。绑定后可用 /献媚状态 核对配置是否正确。

文案风格

每条 10~30 字,梗来自桃神直播间:五冠王、头部主播、出货/老演员、堵门抽卡、抽到三点多、星露谷、理性消费「不买资格」等。文案由 scripts/gen_quips.py 生成,可改语料后重新生成。

示例

桃神:大家晚上好
机器人:🔔 检测到 五冠王桃神 出现!
机器人:🫡 开始献媚!
机器人:群主大人一出场,我辈楷模!

可选联动

如果同时加载 nonebot-plugin-mantou-affection,每次真正触发献媚后会为该群主上报 2 点馒头好感度。该联动是软依赖,好感度插件未安装或未加载时不会影响献媚功能。

许可证

MIT

Metadata

Release files for nonebot-plugin-xianmei 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-xianmei 0.1.4
File Size Uploaded Provenance Actions
nonebot_plugin_xianmei-0.1.4.tar.gz 187.1 kB Without provenance Details for nonebot_plugin_xianmei-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-xianmei 0.1.4
File Interpreter ABI Platform Actions
nonebot_plugin_xianmei-0.1.4-py3-none-any.whl Python 3 none any Details for nonebot_plugin_xianmei-0.1.4-py3-none-any.whl

Total release size: 223.9 kB

Release files / nonebot_plugin_xianmei-0.1.4.tar.gz

Download URL nonebot_plugin_xianmei-0.1.4.tar.gz
Size 187.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b3a8d159372f5fb46829665c7119fa157ec5981639184d7093116e8eb4f4f2c6
BLAKE2b-256 checksum
How to use checksums
79c12e477bf12db983e41cee1040d15e557403d558c8ef4fd0c3e09af47d1d8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / nonebot_plugin_xianmei-0.1.4-py3-none-any.whl

Download URL nonebot_plugin_xianmei-0.1.4-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2434e83718afe15a8f22486d2a686b7a8eb941309d545993ea4424f892509dca
BLAKE2b-256 checksum
How to use checksums
f848575986dd54bbbc04ad33f18098e9d57afde29cae17a00e7a904a41f9bb62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for nonebot-plugin-xianmei 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page