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.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.0.tar.gz (16.5 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.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_simple_block-1.0.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_simple_block-1.0.0.tar.gz
  • Upload date:
  • Size: 16.5 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.0.tar.gz
Algorithm Hash digest
SHA256 560cacdffce9663dabfdbae986cedd96f0614ea4b52dfb2f1c3730844ecc21f4
MD5 45dcd3bb310952a06efa6456d6844f24
BLAKE2b-256 60d4a23e46f87b00578e16df16e5166763057419b185a427fc6ead1ab710eebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_simple_block-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c44484d5f4a412e00417f5b327b47b4149e045f74041236b59eaba5855595a7d
MD5 6fb1572f7f9afeb993d91d55f1e523b8
BLAKE2b-256 3def16716e8ecf6fa1fa36c6808d84016ece9892aef3e3a2560f26c4caafe410

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