Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-blacklist

✨ NoneBot 黑名单插件 ✨

license pypi python nonebot onebot

📖 介绍

基于 A-kirami 大佬的 黑白名单 插件 魔改(?)的仅黑名单插件

超级用户不受黑名单影响

💿 安装

nb-cli安装, 包管理器安装 二选一

使用 nb-cli 安装

在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

nb plugin install nonebot-plugin-blacklist
使用包管理器安装

在 nonebot2 项目的插件目录下, 打开命令行,

根据你使用的包管理器, 输入相应的安装命令

pip
pip install nonebot-plugin-blacklist
pdm
pdm add nonebot-plugin-blacklist
poetry
poetry add nonebot-plugin-blacklist
conda
conda install nonebot-plugin-blacklist

打开 bot项目下的 pyproject.toml 文件,

在其 plugins 里加入 nonebot_plugin_blacklist

plugins = ["nonebot_plugin_blacklist"]

🎉 使用

总开关

群聊静默/静默群聊

群聊响应/响应群聊

私聊静默/静默私聊

私聊响应/响应私聊

拉黑

拉黑用户 qq qq1 qq2
拉黑群 qq qq1 qq2
拉黑私聊 qq qq1 qq2
拉黑所有群
拉黑所有好友

解禁

解禁用户 qq qq1 qq2
解禁群 qq qq1 qq2
解禁私聊 qq qq1 qq2
解禁所有群
解禁所有好友

查看黑名单

查看用户黑名单 bot
查看群聊黑名单 bot
查看私聊黑名单 bot

重置黑名单 bot bot1 bot2 ...
重置所有黑名单

## 不指定bot则为当前bot

被禁言自动屏蔽该群

自觉静默开
自觉静默关

群内发送 /静默 /响应 可快捷拉黑/解禁当前群聊

拉黑所有 只对已添加的群/好友生效

⚠️ 注意事项

本插件目前仅支持 nonebot2 + onebot.v11 的使用方式, 一切非此二者结合的使用方式造成的问题请自行探索解决, 或者使用其他插件

Metadata

Release files for nonebot-plugin-blacklist 1.4.3

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-blacklist 1.4.3
File Size Uploaded Provenance
nonebot_plugin_blacklist-1.4.3.tar.gz 7.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-blacklist 1.4.3
File Interpreter ABI Platform
nonebot_plugin_blacklist-1.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / nonebot_plugin_blacklist-1.4.3.tar.gz

Download URL nonebot_plugin_blacklist-1.4.3.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8c63f647a36acd727d11460f2fe0f5db0ff40a5494a7819c0b315cceb91d5301
BLAKE2b-256 checksum
How to use checksums
b383312e890f5628d9a25750fee5a79867a0b9bcdc792c533026f6ff953d23ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / nonebot_plugin_blacklist-1.4.3-py3-none-any.whl

Download URL nonebot_plugin_blacklist-1.4.3-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f4b1762637c46709a0558d1243411fe765695eb7d29b44657b62dc55a65dc5a
BLAKE2b-256 checksum
How to use checksums
4748b37966553f67d452e500a72e2fbcedd1a85347334e19cab8ea06eb837f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.5

Security for nonebot-plugin-blacklist 1.4.3

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.

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