Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

QingFengTechnology/AstrbotPlugin-SimpleReCAPTCHA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astrbot 简易入群验证插件

AstrbotPlugin-SimpleReCAPTCHA

Warning

此插件主要功能已被合并至我们的另一个项目Authenticator
该插件将不再维护,请改为使用Authenticator

安装

在 Astrbot 应用市场点击右下角 + 号,选择从链接安装,复制粘贴本仓库 URL 并点击安装即可。

使用

在 Astrbot 插件管理页面配置好本插件后即可开始工作。

插件工作示例 插件工作示例2

图片仅供参考,实际效果以插件配置为准。

配置

{
  "whitelist_groups": {
    "description": "群聊白名单",
    "type": "list",
    "items": {
      "type": "int"
    },
    "default": [],
    "hint": "仅在这些群聊中启用验证功能。留空则在所有群聊中启用。"
  },
  "verification_timeout": {
    "description": "验证超时时间",
    "type": "int",
    "default": 300,
    "hint": "成员必须在此时间内完成验证,否则将被踢出,单位为秒。"
  },
  "kick_countdown_warning_time": {
    "description": "踢出前警告倒计时",
    "type": "int",
    "default": 60,
    "hint": "在验证超时前多少秒提示成员尽快验证。设为0可禁用,单位为秒。"
  },
  "kick_delay": {
    "description": "验证超时后踢出延迟",
    "type": "int",
    "default": 5,
    "hint": "发送验证超时消息后,等待多少秒再执行踢出操作,单位为秒。"
  },
  "new_member_prompt": {
    "description": "成员入群提示语",
    "type": "string",
    "default": "{at_user} 欢迎加入本群!请在 {timeout} 分钟内 @我 并回答下面的问题以完成验证:\n{question}",
    "hint": "成员入群时发送的验证信息。可用变量: {at_user}, {member_name}, {question}, {timeout}。"
  },
  "welcome_message": {
    "description": "验证成功提示语",
    "type": "string",
    "default": "{at_user} 验证成功,欢迎你的加入!",
    "hint": "成员验证成功后发送的消息。可用变量: {at_user}, {member_name}。"
  },
  "wrong_answer_prompt": {
    "description": "答案错误提示语",
    "type": "string",
    "default": "{at_user} 答案错误,请重新回答验证。这是你的新问题:\n{question}",
    "hint": "成员回答错误后发送的消息,之后会自动生成新问题。可用变量: {at_user}, {question}。"
  },
  "countdown_warning_prompt": {
    "description": "超时警告提示语",
    "type": "string",
    "default": "{at_user} 验证即将超时,请尽快查看我(BOT)的验证消息进行人机验证!",
    "hint": "在验证即将超时前发送的警告。可用变量: {at_user}, {member_name}。"
  },
  "disable_failure_message": {
    "description": "禁用验证超时提示语",
    "type": "bool",
    "default": false,
    "hint": "如果启用,将不会发送验证超时提示语。"
  },
  "disable_kick_message": {
    "description": "禁用最终踢出提示语",
    "type": "bool",
    "default": false,
    "hint": "如果启用,将不会发送最终踢出提示语。"
  },
  "failure_message": {
    "description": "验证超时提示语",
    "type": "string",
    "default": "{at_user} 验证超时,你将在 {countdown} 秒后被请出本群。",
    "hint": "成员因超时而验证失败后,踢出前发送的消息。可用变量: {at_user}, {member_name}, {countdown}。"
  },
  "kick_message": {
    "description": "最终踢出提示语",
    "type": "string",
    "default": "{at_user} 因未在规定时间内完成验证,已被请出本群。",
    "hint": "成员被踢出后发送的公开消息。可用变量: {at_user}, {member_name}。"
  }
}

占位符定义

占位符 描述
{at_user} @目标成员。
{member_name} 目标成员名称。
{question} 人机验证题目。
{countdown} 验证超时的踢出延迟。
{timeout} 验证超时时间。

鸣谢

About

一个简单的QQ群成员入群验证插件,通过数学题验证检测入群成员是否为人机。

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%