Default template for PDM package
Project description
nonebot-plugin-number-detection
之前在某群看到群成员一直满t都t不赢,所以我根据黑产的插件的功能写了个自动踢人的插件。
[!warning] 该插件未经测试,请谨慎使用
💿 安装
使用 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 | 手动模式时的踢人命令 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_number_detection-0.1.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_number_detection-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60eafc892d8fdb52a3cc27cfc05632e9deaaa863254f0930b9990b5d8746f2f9
|
|
| MD5 |
e41fa2a06d018fb3b9303a15938a189c
|
|
| BLAKE2b-256 |
b8f501ea9e99716963954b723d600ec6835e2808ecb51bda962f3fed490a0156
|
File details
Details for the file nonebot_plugin_number_detection-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_number_detection-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0869b02594b23a86eaeccb9e649848156211e01583544759e8d42e9e7a4aa11
|
|
| MD5 |
a1aa1012868b24b95818f385fda079f1
|
|
| BLAKE2b-256 |
dadf0e0496a2c5fc7c7df9f3827607ec5bd6c4660e0eb6fec39c50376347b48f
|