Anti-insult in NoneBot2
Project description
nonebot-plugin-antiinsult
NoneBot 反嘴臭插件
📖 介绍
本插件为被动插件
检测到有用户 @机器人
并嘴臭时将其临时屏蔽(bot重启后失效)
当bot为群管理时会请对方喝昏睡红茶(禁言)
超级用户不受临时屏蔽影响 但是会被昏睡红茶影响 (当bot的群权限比超级用户高的时候会请超级用户喝昏睡红茶)
增删屏蔽词库:
聊天发送 添加/删除屏蔽词 xxx xxx xxx ...
P.S. 你说从聊天界面查看屏蔽词库? 噢, 我亲爱的老伙计, 你怕是疯了!
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-antiinsult
使用 pip 安装
pip install nonebot-plugin-antiinsult
打开 nonebot2 项目的 bot.py
文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_antiinsult')
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for nonebot_plugin_antiinsult-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0c267809c6001ed03a9a87f1950465b5c24873c0f5d7464bd8eeddba0451a5 |
|
MD5 | e8835aeb42d55d6b5579b4143e7fe2d1 |
|
BLAKE2b-256 | c43f8f41cf4baad05afad223c849edafcd8bb1895848be7b8576cc2902362756 |
Close
Hashes for nonebot_plugin_antiinsult-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07aec63fa87edd17ba4b0d5d0fd31e5cda01dee416204e7eed27cd4b349d3146 |
|
MD5 | df9e17a61a87535608b0828135976549 |
|
BLAKE2b-256 | 8899d5b220565d7dc0eef26eba73ddedf34a47ebc0def692b43c7b310e2f4ee9 |