📖 介绍
简易黑白用户名单管理插件,可在黑名单与白名单模式中互相切换。
黑名单模式下,机器人不会响应来自黑名单用户的消息。
白名单模式下,机器人不会响应白名单用户之外的消息。
超级用户不受黑白名单影响。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-namelist
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-namelist
pdm
pdm add nonebot-plugin-namelist
poetry
poetry add nonebot-plugin-namelist
conda
conda install nonebot-plugin-namelist
打开 nonebot2 项目的 bot.py 文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_namelist')
🎉 使用
指令表
| 指令 | 说明 |
|---|---|
| 切换名单 | 切换黑白名单模式 |
| 添加黑名单+@用户 | 将被艾特的用户加入黑名单 |
| 删除黑名单+@用户 | 将被艾特的用户从黑名单删除 |
| 查看黑名单+@用户 | 查看黑名单中的用户 |
| 添加白名单+@用户 | 将被艾特的用户加入白名单 |
| 删除白名单+@用户 | 将被艾特的用户从白名单删除 |
| 查看白名单+@用户 | 查看白名单中的用户 |
Metadata
Release files for nonebot-plugin-namelist 0.2.0
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-namelist-0.2.0.tar.gz | 3.9 kB | Without provenance | Details for nonebot-plugin-namelist-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_namelist-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_namelist-0.2.0-py3-none-any.whl |
Total release size: 8.1 kB
Release files / nonebot-plugin-namelist-0.2.0.tar.gz
| Download URL | nonebot-plugin-namelist-0.2.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
368a5704609a3c1a4808e118c2bdc8f899720356a2f11546c2d9a7ba63e99968
|
|
BLAKE2b-256 checksum How to use checksums |
fbd58d0310beac0f82cf70b4335e7ab70b9ef9ef73855c3295ed2fc3c76cb142
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / nonebot_plugin_namelist-0.2.0-py3-none-any.whl
| Download URL | nonebot_plugin_namelist-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b285387d24a06f8ddb589dbb3e3e68ed646f674e2243b149b61c96e04b138b69
|
|
BLAKE2b-256 checksum How to use checksums |
f327392714c1b33c30feae17ab0c77ddf357d5d6505dc85dffa074fba30f53f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for nonebot-plugin-namelist 0.2.0
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.