Message Blocker
Project description
📖 介绍
这是一个 nonebot2 插件项目,用于分群配置机器人的开启关闭
💿 安装
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-blocker
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-blocker"]
⚙️ 配置
插件的配置文件位于 data/blocker/blocker_reply.json 里
{
"reply_on":{
"type":"text"
"data":{
"text":"在本群开启"
}
},
"reply_off":{
"type":"text"
"data":{
"text":"在本群关闭"
}
}
}
data/blocker/blocklist.json 里是已经设置关闭Bot的群号,可以在关闭nonebot之后手动编辑
💬 指令
指令只有管理员,群主以及Bot的SUPERUSER能够使用
.bot on在该群开启bot
.bot off在该群关闭bot
在上述指令后at特定bot将关闭使用了本插件的特定Bot,不会影响使用本插件的其他Bot
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot-plugin-blocker-0.1.8.tar.gz.
File metadata
- Download URL: nonebot-plugin-blocker-0.1.8.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7484b7b3f306d8c3d58bd7b0e34886968e626e172ae26ae0dc0cc8a250162d1
|
|
| MD5 |
716af3edea395d376ea04465e4740a76
|
|
| BLAKE2b-256 |
458915485ea140930f176b153dd12f2d944a7ab8b7a068fe7c278b68cf3ea8f4
|
File details
Details for the file nonebot_plugin_blocker-0.1.8-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_blocker-0.1.8-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649890e8c1ee50c54eb198d8b5662a4a2210bbf7742e3c7481219d7c3bfea8ce
|
|
| MD5 |
64974be425ab3bc15186490dd835221b
|
|
| BLAKE2b-256 |
47408c35fc4d22030e8dc478676f8bbf10d78efc47b732e4cff5196ea987e56a
|