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

群聊中发送时作用于当前群;私聊发送时第一个参数必须是群号,如 /献媚设置群主 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

nonebot_plugin_xianmei-0.1.1.tar.gz (186.5 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.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_xianmei-0.1.1.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

Hashes for nonebot_plugin_xianmei-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f28272496b6d30128db1c98fbab03793da8136b97030c0ea8a19a0526b796e2f
MD5 75ea2faaf1b98d92f60f634da65d2743
BLAKE2b-256 f9d445e01ce41e920191a71bea9d5baa2316d71b3162144ea5f2d20353e1d845

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xianmei-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bddf4699eb1acd5580da7e01aa483271057e2c047d0373f7b423abd275f88ca9
MD5 152d62727cce6d7d6eda05e2a5bff832
BLAKE2b-256 a68f735e295c7213ea28f3e61ce45972ea98c84355767a4937f9994bd7c5e029

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

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