Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-simple-block

✨ 屏蔽某个群聊或只相应某个群聊,方便开发者进行插件测试 ✨

license pypi python

📖 介绍

屏蔽某个群聊或只相应某个群聊,方便开发者进行插件测试

💿 安装

使用 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)

Source distribution for nonebot-plugin-simple-block 1.0.1
File Size Uploaded
nonebot_plugin_simple_block-1.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-simple-block 1.0.1
File Interpreter ABI Platform
nonebot_plugin_simple_block-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page