💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-number-detection
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-number-detection
pdm
pdm add nonebot-plugin-number-detection
poetry
poetry add nonebot-plugin-number-detection
conda
conda install nonebot-plugin-number-detection
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-number-detection"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| detect_is_automatic | 否 | false | 是否启用自动踢人 |
| detect_headcount | 否 | 10 | 群最大人数 - 当前人数 大于这个值时执行踢人操作,否则不执行 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| group_ban | 主人 | 否 | all | 手动模式时的踢人命令 |
Metadata
Release files for nonebot-plugin-number-detection 0.1.2
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_number_detection-0.1.2.tar.gz | 3.3 kB | Without provenance | Details for nonebot_plugin_number_detection-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_number_detection-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_number_detection-0.1.2-py3-none-any.whl |
Total release size: 7.2 kB
Release files / nonebot_plugin_number_detection-0.1.2.tar.gz
| Download URL | nonebot_plugin_number_detection-0.1.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60eafc892d8fdb52a3cc27cfc05632e9deaaa863254f0930b9990b5d8746f2f9
|
|
BLAKE2b-256 checksum How to use checksums |
b8f501ea9e99716963954b723d600ec6835e2808ecb51bda962f3fed490a0156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / nonebot_plugin_number_detection-0.1.2-py3-none-any.whl
| Download URL | nonebot_plugin_number_detection-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0869b02594b23a86eaeccb9e649848156211e01583544759e8d42e9e7a4aa11
|
|
BLAKE2b-256 checksum How to use checksums |
dadf0e0496a2c5fc7c7df9f3827607ec5bd6c4660e0eb6fec39c50376347b48f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for nonebot-plugin-number-detection 0.1.2
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.