Skip to main content

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

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-antiinsult

✨ NoneBot 反嘴臭插件 ✨

license pypi python

📖 介绍

本插件为被动插件

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


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.3.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

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