Anti-insult in NoneBot2
Project description
nonebot-plugin-antiinsult
NoneBot 反嘴臭插件
📖 介绍
本插件为被动插件
检测到有用户 @机器人
并嘴臭时将其临时屏蔽(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')
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04b358bdadbae0e62e15d7ca981827569b8bc61cb70525b3bf1ffda7d189af4 |
|
MD5 | eae964c46e89c36e6ce65e47e8aa4503 |
|
BLAKE2b-256 | 7f0d05a29cf9375e843133e6d9e56a19366abcf3fcda78cc8175239a2b50b685 |
Close
Hashes for nonebot_plugin_antiinsult-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a8937b26d96a31dcd752ea4bd94c0acb56a80412af053a60aee2f724cd05448 |
|
MD5 | 7811215c1c0e8dd528d915d98f1dc3f7 |
|
BLAKE2b-256 | c087086d858a7edc2829dd5b8f97c0eb1576edf887b77bb9169278453d83dd48 |