Anti-insult in NoneBot2
Project description
📖 介绍
本插件为被动插件
检测到有用户 @机器人
并嘴臭时将其临时屏蔽(bot重启后失效)
当bot为群管理时会请对方喝昏睡红茶(禁言)
超级用户不受临时屏蔽影响 但是会被昏睡红茶影响 (当bot的群权限比超级用户高的时候会请超级用户喝昏睡红茶)
增删屏蔽词库:
聊天发送 添加/删除屏蔽词 词1 词2 词3 ...
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')
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
添加屏蔽词 xxx | 主人 | 否 | 私聊 | 群聊 | 可输入多个, 用空格隔开 |
删除屏蔽词 xxx | 主人 | 否 | 私聊 | 群聊 |
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bed93996a89bbac06cc38d500ccbb0a7900accc7466639e2a0eb6a452898918 |
|
MD5 | d3f5943e41b6dc6e6ae31487fae2e946 |
|
BLAKE2b-256 | 22469c44927ab056d537a928492ce1f7461f1f15a74040b89b80aa0f521e29b2 |
Close
Hashes for nonebot_plugin_antiinsult-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef41a4a06fe28aa6dbf215012f9142300bb0c3dfe7cb03d7235519bec514437c |
|
MD5 | 5a81363dd1110e849ccca8ec809541bd |
|
BLAKE2b-256 | c654608db723c8bf03795ddf8daebf28ffaa7e080ac77e6974c492ce108061ab |