Anti-insult in NoneBot2
Reason this release was yanked:
There is a bug in this version, the temporary blacklist does not take effect
Project description
📖 介绍
本插件为被动插件
检测到有用户 @机器人
并嘴臭时将其临时屏蔽(bot重启后失效)
当bot为群管理时会请对方喝昏睡红茶(禁言)
- 超级用户不受临时屏蔽影响
但是会被昏睡红茶影响 - 当bot的群权限比超级用户高的时候会请超级用户喝昏睡红茶
- 被bot灌了昏睡红茶的用户不会进临时黑名单
💿 安装
使用 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 | 主人 | 否 | 私聊 | 群聊 | |
解除屏蔽 qq | 主人 | 否 | 私聊 | 群聊 | |
查看临时黑名单 | 主人 | 否 | 私聊 | 群聊 |
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db84b7b4c1a88d894b4a732f8b91ddcda50e536e7f8acf2688af11c49e9988ec |
|
MD5 | 9fc00e56847c71c7db853e756a092d29 |
|
BLAKE2b-256 | 51946e2adcfe7e8e46d9edde0542232267976799b65c7bc0c5bb3d814a60b4eb |
Close
Hashes for nonebot_plugin_antiinsult-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340e5c2cd8b83f9cfbe666c97ac57cb8bc96115f395b24dd29ae17c4e7d0d8eb |
|
MD5 | 5d0d8df18e428051eb15e5fa8892630e |
|
BLAKE2b-256 | f9b09f0f3393c8f3ec4fba10a25288563a0a2120866766c37b8677242ca2bcd8 |