feat: add configurable timed scheduler to the Telegram bot for automated tasks.

This commit is contained in:
2026-02-10 02:38:45 +08:00
parent b9dd421714
commit 4d5fa36183
3 changed files with 760 additions and 1 deletions

View File

@@ -235,6 +235,24 @@ check_interval = 3600
# 低库存预警阈值 (正常账号数低于此值时预警)
low_stock_threshold = 10
# ==================== 定时调度器配置 ====================
# 时间窗口内自动循环执行: 注册 → run_all → 冷却 → 重复
# 通过 Telegram Bot 的 /schedule 命令开启/关闭
[scheduler]
# 是否启用定时调度 (也可通过 /schedule on 命令开启)
enabled = false
# 时间窗口: 仅在此时间段内运行 (24小时制)
start_hour = 8
end_hour = 14
# 每轮注册的 GPT Team 账号数量
batch_size = 50
# 每轮完成后的冷却时间 (分钟)
cooldown_minutes = 5
# 注册输出方式: "team" (写入 team.json 供 run_all 处理)
output_type = "team"
# 连续失败 N 轮后自动暂停调度器并发送告警
max_consecutive_failures = 3
# ==================== AutoGPTPlus 配置 ====================
# 独立的 ChatGPT 订阅自动化脚本配置
[autogptplus]