基于 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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8065d1b6d7fcd50589abe8c858d0e238b6af5d5a61b14cc07e8f3228082e25c5 |
|
MD5 | bddf65c13d1d2507e3dded2635c8fee1 |
|
BLAKE2b-256 | 49c58ed284c66f936eeeaa6f8fe70a9e40742bd76f2ef66ef648f5766e92e825 |
Close
Hashes for nonebot_plugin_shutup-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4768b83d1f9f1045743f1a5dfe14b5b958764816a1526273c7e6f7d2c5e0a6f |
|
MD5 | d5ab020d9b8f8721a4908169cea8010d |
|
BLAKE2b-256 | 26e0f3671d218d511dcc45ece5fbbf758c45acbccc1385d18bbdf88610c0b144 |