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.3.tar.gz (186.7 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.3-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_xianmei-0.1.3.tar.gz
  • Upload date:
  • Size: 186.7 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.3.tar.gz
Algorithm Hash digest
SHA256 bf3ad1cab94222c7817b5987be27c6141ae5f8adc1bbc385751765c370f6e084
MD5 d27f8b4f69e18996476400f580d9ff36
BLAKE2b-256 7e5741098b431d6013401d565c7b8c4feaae0633bc5594db15241d0a254352dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_xianmei-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b032fcf74872c2c1c0b60ca5f7d45a90cff4e3b16f6ab7d4a80b7c1266b5f8c
MD5 b124748a8748da38ee3de65875753a96
BLAKE2b-256 961f58a073ca260111f5db8e281f1d3f6909fd3b66ebdf2b4ebc679aa97fcc56

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

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