屏蔽某个群聊或只相应某个群聊,方便开发者进行插件测试
Project description
📖 介绍
屏蔽某个群聊或只相应某个群聊,方便开发者进行插件测试
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-simple-block
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-simple-block
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_simple_block"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| group_blacklist | list | 否 | [ ] | 黑名单,添加在黑名单内的群将不会响应 |
| group_whitelist | list | 否 | [ ] | 白名单,只会响应白名单内的群 |
[!IMPORTANT] 当黑名单和白名单同时配置时,将会优先使用黑名单
📃 更新日志
1.0.1(2025.01.01)
- 📃修复了一些问题
1.0.0(2024.12.20)
- 🧋发布插件
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_simple_block-1.0.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_simple_block-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.12 Linux/5.15.0-122-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c6b2f80fa2747b019f053e51a265938660f6a28429bcb12d51a0cd517b9de3b
|
|
| MD5 |
daee5774fed89379d51daebae5101e38
|
|
| BLAKE2b-256 |
bb6773f6b13e78ba4b2d49553a778250151d807e1f32886ed3c9e34a2a28d2cb
|
File details
Details for the file nonebot_plugin_simple_block-1.0.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_simple_block-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.12 Linux/5.15.0-122-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
176b1ff9a25970aa159914626cb9a74f348025375b72978ebe5f882cac833b39
|
|
| MD5 |
08055a7dac275d9307638f8d6ff7b458
|
|
| BLAKE2b-256 |
9852bddd217e42dfe14830a314df24e56f1c27fa47ae4232470118722b94fc68
|