Skip to main content

Default template for PDM package

Project description

NoneBotPluginLogo

NoneBotPluginText

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_number_detection-0.1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_number_detection-0.1.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_number_detection-0.1.2.tar.gz
Algorithm Hash digest
SHA256 60eafc892d8fdb52a3cc27cfc05632e9deaaa863254f0930b9990b5d8746f2f9
MD5 e41fa2a06d018fb3b9303a15938a189c
BLAKE2b-256 b8f501ea9e99716963954b723d600ec6835e2808ecb51bda962f3fed490a0156

See more details on using hashes here.

File details

Details for the file nonebot_plugin_number_detection-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_number_detection-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0869b02594b23a86eaeccb9e649848156211e01583544759e8d42e9e7a4aa11
MD5 a1aa1012868b24b95818f385fda079f1
BLAKE2b-256 dadf0e0496a2c5fc7c7df9f3827607ec5bd6c4660e0eb6fec39c50376347b48f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page