Skip to main content

nonebot简单易用的黑名单插件,实现分插件拉黑用户/群聊/全局

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-authrespond

✨ nonebot简单易用的黑名单插件,全平台支持,实现分插件拉黑用户/群聊/全局 ✨

license pypi python

📖 介绍

简单易用的黑名单插件,实现分插件拉黑用户/群聊/全局,无需修改插件源码

原理为插件运行前监听Matcher响应器属性

全平台支持,但是 二级群组可能存在问题

仅在 onebotV11 测试过,其余平台出现问题请提issue

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-authrespond
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-authrespond
pdm
pdm add nonebot-plugin-authrespond
poetry
poetry add nonebot-plugin-authrespond
conda
conda install nonebot-plugin-authrespond

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_authrespond"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
cubplugin_datadir "" 自定义配置文件路径,默认localstore

🎉 使用

指令表

指令 权限 需要@ 范围 说明
#(全局/插件名称)(拉黑/解黑)(全员/用户id) 主人 私聊/群聊 用户操作模式
#(全局/插件名称)(封禁群/解禁群)(群号/留空封禁所在群) 主人 私聊/群聊 群聊操作模式

[!tips] 插件名称为nonebot导入的插件,比如nonebot_plugin_cyberfurry 也可以使用cyberfurry(即去掉nonebot_plugin_) 插件名称检查来源为: nonebot.get_loaded_plugins() 中各属性的 plugin.name

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_authrespond-1.6.2.tar.gz (44.8 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_authrespond-1.6.2-py3-none-any.whl (33.1 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