Skip to main content

基于白泽神话的群验证插件

Project description

NoneBot2 群入群验证插件 (nonebot-plugin-baize)

一个基于 NoneBot2 的群入群验证插件,通过向新入群用户提问进行验证,防止机器人恶意刷群。本版本已移除关键词匹配功能,只支持精确匹配。

功能特性

  • 入群验证: 新用户入群时,插件会自动发送验证问题到用户的私聊。
  • 题库管理: 支持从 JSON 文件加载题库,方便管理和更新题目。
  • 精确答案验证: 用户必须输入与答案完全一致的内容才能通过验证。
  • 超时自动移除: 如果用户在指定时间内未通过验证,插件会自动将其从群中移除。
  • 灵活配置: 通过配置文件可以自定义题库路径、超时时间等参数。

使用方法

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-baize
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-baize
pdm
pdm add nonebot-plugin-baize
poetry
poetry add nonebot-plugin-baize
conda
conda install nonebot-plugin-baize

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_template"]

贡献

欢迎提交 Pull Request 来改进本项目!

License

MIT

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_baize-1.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_baize-1.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_baize-1.1.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_baize-1.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for nonebot_plugin_baize-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a60e6c671c166dfe1a1fcb3df49a6b827a9e3ebe98c2e01f3015311f270ca161
MD5 cf6315c9823b3f09fa41a399e5d9614f
BLAKE2b-256 6007fbacfecd77658abbc46c4c60813bf6edbe56451381bbdfc8e1cf2761cb13

See more details on using hashes here.

File details

Details for the file nonebot_plugin_baize-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_baize-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3975d214682095ad0eb6502533e75a8c8ed33d6cbcd8af3fd7b27a36454c46a4
MD5 b30471258b040c8cb01205ede302937d
BLAKE2b-256 13dfed966a76fdf9b686154b38e8e1f7b54107d2d4ba6bc694d1e67bcb45a59e

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