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 生成,可改语料后重新生成。

示例

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

许可证

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_xianmei-0.1.2.tar.gz (186.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_xianmei-0.1.2-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_xianmei-0.1.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_xianmei-0.1.2.tar.gz
  • Upload date:
  • Size: 186.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for nonebot_plugin_xianmei-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eeb233fb80af305cd8012364b218f69d6434b226c8088f11e66779e719406fc8
MD5 d64c3c968814c0119bc2a887e8cb5236
BLAKE2b-256 defaa5976149dcf515e407c58689bcdbd1895562ae50d1c46c32428527928241

See more details on using hashes here.

File details

Details for the file nonebot_plugin_xianmei-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_xianmei-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 627bd1922fd382bfea7aee7c660fc18622b9ce26ebca57e715f102299dc9870b
MD5 8a2cfbd1c3f0dd01959ff646a09cd111
BLAKE2b-256 cb55badea7d0891e8b3029dd3bfaa79fa00be918567972bf64d708b9df35028e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

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