Skip to main content

Anti-insult in NoneBot2

Project description

nonebot-plugin-antiinsult

NoneBot 反嘴臭插件

license pypi python

📖 介绍

本插件为被动插件

检测到有用户 @机器人 并嘴臭时将其临时屏蔽(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


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_antiinsult-0.2.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_antiinsult-0.2.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page