Skip to main content

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

Project description

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)

  • 🧋发布插件

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_simple_block-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_simple_block-1.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for nonebot_plugin_simple_block-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4c6b2f80fa2747b019f053e51a265938660f6a28429bcb12d51a0cd517b9de3b
MD5 daee5774fed89379d51daebae5101e38
BLAKE2b-256 bb6773f6b13e78ba4b2d49553a778250151d807e1f32886ed3c9e34a2a28d2cb

See more details on using hashes here.

File details

Details for the file nonebot_plugin_simple_block-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_simple_block-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 176b1ff9a25970aa159914626cb9a74f348025375b72978ebe5f882cac833b39
MD5 08055a7dac275d9307638f8d6ff7b458
BLAKE2b-256 9852bddd217e42dfe14830a314df24e56f1c27fa47ae4232470118722b94fc68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page