Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-namelist

✨ NoneBot 黑白名单 ✨

license pypi python

📖 介绍

简易黑白用户名单管理插件,可在黑名单与白名单模式中互相切换。

黑名单模式下,机器人不会响应来自黑名单用户的消息。

白名单模式下,机器人不会响应白名单用户之外的消息。

超级用户不受黑白名单影响。

💿 安装

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

🎉 使用

指令表

指令 说明
切换名单 切换黑白名单模式
添加黑名单+@用户 将被艾特的用户加入黑名单
删除黑名单+@用户 将被艾特的用户从黑名单删除
查看黑名单+@用户 查看黑名单中的用户
添加白名单+@用户 将被艾特的用户加入白名单
删除白名单+@用户 将被艾特的用户从白名单删除
查看白名单+@用户 查看白名单中的用户

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)

Source distribution for nonebot-plugin-namelist 0.2.0
File Size Uploaded
nonebot-plugin-namelist-0.2.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-namelist 0.2.0
File Interpreter ABI Platform
nonebot_plugin_namelist-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.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