使用
在群里艾特机器人+雪豹闭嘴 ,即可使机器人暂时屏蔽群内主动响应,任意适配器都可以使用。
仅限主动信息响应屏蔽,如果是其他插件的主动信息功能是无法屏蔽的,例如定时任务
💿 安装
以下提到的方法 任选其一 即可
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-shutup
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-shutup
pdm
pdm add nonebot-plugin-shutup
poetry
poetry add nonebot-plugin-shutup
conda
conda install nonebot-plugin-shutup
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分的 plugins 项里追加写入
[tool.nonebot]
plugins = [
# ...
"nonebot_plugin_shutup"
]
⚙️ 配置
插件开箱即用,所有配置项皆为可选。请按需添加下面的配置项到 .env 文件中
| 配置项 | 必填 | 默认值 | 类型 | 说明 |
|---|---|---|---|---|
shutup_tome |
否 | True | bool | 是否需要艾特,设置为False则无需艾特 |
shutup_name |
否 | [] | List[str] | 需要名称,例如xx闭嘴,不设置则全部响应 |
shutup_time |
否 | 10 |
int | 闭嘴时间,单位分钟,设置为0则不限时间 |
shutup_permission |
int | 0 | int | 3:超级管理员,2:群主+,1:群管理员+,0:全体 |
不建议
不建议和以下插件混用,因为功能重复
其他
丁真同款电子烟- 爱发电
- 支付宝-蚂蚁森林-保护雪豹(手机打开) 以下是作者保护雪豹的截图
Metadata
Release files for nonebot-plugin-shutup 0.1.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_shutup-0.1.0.tar.gz | 5.4 kB | Without provenance | Details for nonebot_plugin_shutup-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_shutup-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_shutup-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / nonebot_plugin_shutup-0.1.0.tar.gz
| Download URL | nonebot_plugin_shutup-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc9085204c0822da9b03ff7df089015a8e2619295c7d063a2c3b090961345b04
|
|
BLAKE2b-256 checksum How to use checksums |
08b0e9f179e0d317d28aef4c0045960dfe637ea4c7f1f4cf79036d7f0e37a1ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.0.post1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / nonebot_plugin_shutup-0.1.0-py3-none-any.whl
| Download URL | nonebot_plugin_shutup-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07526ce8219b18c6bd28d263db677b7851d0ccbf5b367745b4bacfbb8c29fff1
|
|
BLAKE2b-256 checksum How to use checksums |
379200874c49ca0f43dfa69ede982f7690288d94be9939ed046ec7b63919ae55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.0.post1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for nonebot-plugin-shutup 0.1.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.