feat: Add commands and help text for timed scheduler management and status.
This commit is contained in:
@@ -358,6 +358,10 @@ class ProvisionerBot:
|
|||||||
# AutoGPTPlus
|
# AutoGPTPlus
|
||||||
BotCommand("autogptplus", "AutoGPTPlus 管理面板"),
|
BotCommand("autogptplus", "AutoGPTPlus 管理面板"),
|
||||||
BotCommand("update_token", "更新邮件 API Token"),
|
BotCommand("update_token", "更新邮件 API Token"),
|
||||||
|
# 定时调度器
|
||||||
|
BotCommand("schedule", "定时调度器 开关"),
|
||||||
|
BotCommand("schedule_config", "调度器参数配置"),
|
||||||
|
BotCommand("schedule_status", "调度器运行状态"),
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
await self.app.bot.set_my_commands(commands)
|
await self.app.bot.set_my_commands(commands)
|
||||||
@@ -442,12 +446,18 @@ class ProvisionerBot:
|
|||||||
/autogptplus - ChatGPT 订阅自动化管理面板
|
/autogptplus - ChatGPT 订阅自动化管理面板
|
||||||
/update_token <token> - 更新邮件 API Token
|
/update_token <token> - 更新邮件 API Token
|
||||||
|
|
||||||
|
<b>⏰ 定时调度器:</b>
|
||||||
|
/schedule on|off - 开启/关闭定时调度器
|
||||||
|
/schedule_config - 配置调度器参数
|
||||||
|
/schedule_status - 查看调度器运行状态
|
||||||
|
|
||||||
<b>💡 示例:</b>
|
<b>💡 示例:</b>
|
||||||
<code>/list</code> - 查看所有待处理账号
|
<code>/list</code> - 查看所有待处理账号
|
||||||
<code>/run 0</code> - 处理第一个 Team
|
<code>/run 0</code> - 处理第一个 Team
|
||||||
<code>/concurrent 4</code> - 开启 4 并发处理
|
<code>/concurrent 4</code> - 开启 4 并发处理
|
||||||
<code>/gptmail_add my-api-key</code> - 添加 Key
|
<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")
|
await update.message.reply_text(help_text, parse_mode="HTML")
|
||||||
|
|
||||||
@admin_only
|
@admin_only
|
||||||
|
|||||||
Reference in New Issue
Block a user