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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_number_detection-0.1.1.tar.gz
Algorithm Hash digest
SHA256 506827d96f813c44406d8df03d632cbdfc29c4c001d5862eabe6fcba0ae14ac6
MD5 5e3400a52942804f11d897bb89e4c9ec
BLAKE2b-256 60e44bf8023b74a8976c55e2ee567e1b747f1b8c2573c943e9ba851a11f60585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_number_detection-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7904f0eb42091dd9da10dc9be122a42e35fa384520f268ea8cbda0b41b351d9c
MD5 fc83e9774f316b9f35d1cb6a48ce1405
BLAKE2b-256 7be79fbc8c600309253a6eb35eb9be3f69ed8fbf813e9a387533670b34187e7b

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