# =============================================================================
# LTD-ManagerBot 模块配置
# =============================================================================
# 所有可用模块类型 (ModuleType):
#   MAIL_MODULE               - 邮件发送
#   GROUP_REQUEST_HANDLER_MODULE - 自动处理加群请求
#   GROUP_MESSAGE_POLLING_MODULE  - 群消息轮询 (基础设施)
#   INVITE_MODULE             - 邀请码生成与发送
#   BAN_MODULE                - 禁言/解禁
#   DG_LAB_MODULE             - DG-Lab 设备控制
#   MC_SERVER_STATUS_MODULE    - MC 服务器状态查询
#   RCON_PLAYER_LIST_MODULE    - RCON 玩家列表/TPS 查询
#   STATE_MODULE              - 机器人状态显示
#   MOD_GROUP_HANDLER_MODULE  - Mod 群自动处理
#   HELP_MODULE               - 帮助模块
#   RCON_COMMAND_MODULE       - 通用 RCON 命令执行
#   GITEA_WEBHOOK_MODULE      - Gitea Webhook 事件通知
#   WHITELIST_AUDIT_MODULE    - 白名单审计 (自动拒绝/提醒/过期)
# =============================================================================

module:
  modules:

  # ---- 邮件模块 ----
  # - name: "talkGroup"
  #   type: "MAIL_MODULE"
  #   enabled: true

  # ---- 群消息轮询 (主群) ----
  # - name: "talkGroup"
  #   type: "GROUP_MESSAGE_POLLING_MODULE"
  #   enabled: true
  #   config:
  #     target-group-id: 538751386

  # ---- 群消息轮询 (白名单群) ----
  # - name: "whitelistGroup"
  #   type: "GROUP_MESSAGE_POLLING_MODULE"
  #   enabled: true
  #   config:
  #     target-group-id: 920719236

  # ---- 通用 RCON 命令模块 ----
  # - name: "talkGroup"
  #   type: "RCON_COMMAND_MODULE"
  #   enabled: true
  #   dependencies:
  #     - name: "talkGroup"
  #       type: "GROUP_MESSAGE_POLLING_MODULE"
  #   config:
  #     self-id: 3327379836
  #     self-nick-name: "Bot"
  #     command-prefix: "rcon"                     # QQ群触发前缀
  #     admin-ids: [2561098830]                    # 允许执行RCON的QQ号
  #     rcon-timeout-sec: 5                        # RCON超时(秒)
  #     command-blocklist:                         # 危险命令黑名单(前缀匹配)
  #       - "stop"
  #       - "restart"
  #       - "op"
  #       - "deop"
  #       - "whitelist"
  #       - "ban"
  #       - "ban-ip"
  #       - "kick"
  #       - "debug"
  #       - "execute"

  # ---- Gitea Webhook 模块 ----
  # - name: "talkGroup"
  #   type: "GITEA_WEBHOOK_MODULE"
  #   enabled: true
  #   config:
  #     webhook-port: 8080                         # 监听端口
  #     webhook-path: "/gitea-webhook"             # Webhook路径 (默认)
  #     webhook-secret: "your-webhook-secret"      # HMAC-SHA256密钥
  #     target-group-id: 538751386                 # 推送QQ群
  #     events:                                    # 监听事件 (空=全部)
  #       - "push"
  #       - "issues"
  #       - "pull_request"
  #       - "create"
  #       - "delete"
  #       - "release"

  # ---- 白名单审计模块 ----
  # - name: "talkGroup"
  #   type: "WHITELIST_AUDIT_MODULE"
  #   enabled: true
  #   dependencies:
  #     - name: "talkGroup"                        # 主群轮询 (重新激活关键词)
  #       type: "GROUP_MESSAGE_POLLING_MODULE"
  #     - name: "whitelistGroup"                   # 白名单群轮询 (审计命令)
  #       type: "GROUP_MESSAGE_POLLING_MODULE"
  #     - name: "talkGroup"                        # 邮件模块 (enable-email:true时)
  #       type: "MAIL_MODULE"
  #   config:
  #     self-id: 3327379836
  #     # ---- 权限控制 ----
  #     filter-qq-list: [2561098830, 3327379836]   # 永不自动拒绝的QQ
  #     audit-allowed-ids: [2561098830]            # 可执行"审计"命令的QQ
  #     # ---- 白名单群手动审计 ----
  #     whitelist-group-polling-dep-name: "whitelistGroup"
  #     audit-command-prefix: "审计"               # 白名单群触发关键词
  #     # ---- 重新激活 ----
  #     re-activation-keywords:                    # 主群重新激活关键词
  #       - "重新激活"
  #       - "激活白名单"
  #       - "reactivate"
  #     # ---- 时间参数 ----
  #     grace-period-days: 7                       # 宽限期(天)
  #     expiry-warning-days: 2                     # 到期前N天警告
  #     poll-interval-minutes: 60                  # 审计间隔(分钟)
  #     # ---- 邮件通知 ----
  #     enable-email: false                        # 是否启用邮件通知
