基于 NoneBot2 的 插件,用于机器人当前会话闭嘴
Project description
使用
在群里艾特机器人+雪豹闭嘴
,即可使机器人暂时屏蔽群内主动响应,任意适配器都可以使用。
仅限主动信息响应屏蔽,如果是其他插件的主动信息功能是无法屏蔽的,例如定时任务
💿 安装
以下提到的方法 任选其一 即可
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-shutup
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-shutup
pdm
pdm add nonebot-plugin-shutup
poetry
poetry add nonebot-plugin-shutup
conda
conda install nonebot-plugin-shutup
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分的 plugins
项里追加写入
[tool.nonebot]
plugins = [
# ...
"nonebot_plugin_shutup"
]
⚙️ 配置
插件开箱即用,所有配置项皆为可选。请按需添加下面的配置项到 .env
文件中
配置项 | 必填 | 默认值 | 类型 | 说明 |
---|---|---|---|---|
shutup_tome |
否 | True | bool | 是否需要艾特,设置为False 则无需艾特 |
shutup_name |
否 | [] | List[str] | 需要名称,例如xx闭嘴 |
shutup_time |
否 | 10 |
int | 闭嘴时间,单位分钟 |
shutup_permission |
否 | ["超管"] | List[str] | 默认只响应超管,如果需要所有人都能使用,设置为空列表[] |
不建议
不建议和以下插件混用,因为功能重复
其他
丁真同款电子烟- 爱发电
- 支付宝-蚂蚁森林-保护雪豹(手机打开) 以下是作者保护雪豹的截图
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_shutup-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f296a40a5257ce52ff83b746289170f853c059cc1693ce479a8e5b01e8208afd |
|
MD5 | a81d9d3177ef74fbabf533d0bf74fd7b |
|
BLAKE2b-256 | e48c78ca8efebbb9067f75bce37a0153c9f010dcd59e34be8b730c6f5d37c08c |
Close
Hashes for nonebot_plugin_shutup-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df0156ceab0e3fc93821a42ce2f4387c4e6f76fc0c155e5aef3e5630cf551bf5 |
|
MD5 | 12259e15ba5454db744902578a3ccadc |
|
BLAKE2b-256 | 59df01b93011e33a6b7055bd35608c46813db8d8ec9f708fea166d05004b1f4c |