📖 介绍
屏蔽某个群聊或只相应某个群聊,方便开发者进行插件测试
💿 安装
使用 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)
- 🧋发布插件
Metadata
Release files for nonebot-plugin-simple-block 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_simple_block-1.0.1.tar.gz | 3.0 kB | Without provenance | Details for nonebot_plugin_simple_block-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_simple_block-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_simple_block-1.0.1-py3-none-any.whl |
Total release size: 6.3 kB
Release files / nonebot_plugin_simple_block-1.0.1.tar.gz
| Download URL | nonebot_plugin_simple_block-1.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c6b2f80fa2747b019f053e51a265938660f6a28429bcb12d51a0cd517b9de3b
|
|
BLAKE2b-256 checksum How to use checksums |
bb6773f6b13e78ba4b2d49553a778250151d807e1f32886ed3c9e34a2a28d2cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.12 Linux/5.15.0-122-generic
|
Release files / nonebot_plugin_simple_block-1.0.1-py3-none-any.whl
| Download URL | nonebot_plugin_simple_block-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
176b1ff9a25970aa159914626cb9a74f348025375b72978ebe5f882cac833b39
|
|
BLAKE2b-256 checksum How to use checksums |
9852bddd217e42dfe14830a314df24e56f1c27fa47ae4232470118722b94fc68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.12 Linux/5.15.0-122-generic
|
Security for nonebot-plugin-simple-block 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.