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文件中添加下表中的必填配置

配置项 必填 默认值 说明
is_automatic false 是否启用自动踢人
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.0.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.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_number_detection-0.1.0.tar.gz
Algorithm Hash digest
SHA256 498025284cbc6aff4cbf8e8ca23b65488391bcac22981d9f29380a7d2dbec30a
MD5 26d856edc4db8a7027cd73df606aeea2
BLAKE2b-256 cf637b52a7190f59ecd84e9b31ca90996d19b5f1638df86e1ce0fbc49048f4dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_number_detection-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a7e535621616c6f90140c26deb4dc4ed5d9549ca4dfe570d9e48d09afebaf7e
MD5 5af5e5395951a689594e704528588fc7
BLAKE2b-256 315a53378ab6c9c506721d31cd9cf4d560f15290afd555ea109b3bed59196e26

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