feat: Add commands and help text for timed scheduler management and status.

This commit is contained in:
2026-02-10 02:43:23 +08:00
parent 4d5fa36183
commit 2c875594a6

View File

@@ -358,6 +358,10 @@ class ProvisionerBot:
# AutoGPTPlus
BotCommand("autogptplus", "AutoGPTPlus 管理面板"),
BotCommand("update_token", "更新邮件 API Token"),
# 定时调度器
BotCommand("schedule", "定时调度器 开关"),
BotCommand("schedule_config", "调度器参数配置"),
BotCommand("schedule_status", "调度器运行状态"),
]
try:
await self.app.bot.set_my_commands(commands)
@@ -442,12 +446,18 @@ class ProvisionerBot:
/autogptplus - ChatGPT 订阅自动化管理面板
/update_token <token> - 更新邮件 API Token
<b>⏰ 定时调度器:</b>
/schedule on|off - 开启/关闭定时调度器
/schedule_config - 配置调度器参数
/schedule_status - 查看调度器运行状态
<b>💡 示例:</b>
<code>/list</code> - 查看所有待处理账号
<code>/run 0</code> - 处理第一个 Team
<code>/concurrent 4</code> - 开启 4 并发处理
<code>/gptmail_add my-api-key</code> - 添加 Key
<code>/iban_add DE123...,DE456...</code> - 添加 IBAN"""
<code>/iban_add DE123...,DE456...</code> - 添加 IBAN
<code>/schedule on</code> - 启动调度器"""
await update.message.reply_text(help_text, parse_mode="HTML")
@admin_only