mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-12 23:40:03 +08:00
✨ feat(schedulerAdmin): 允许定时任务删除、暂停、恢复命令支持多ID操作
This commit is contained in:
@@ -147,8 +147,8 @@ schedule_cmd = on_alconna(
|
||||
Subcommand(
|
||||
"删除",
|
||||
Args[
|
||||
"schedule_id?",
|
||||
int,
|
||||
"schedule_ids?",
|
||||
MultiVar(int),
|
||||
Field(unmatch_tips=lambda text: f"任务ID '{text}' 必须是数字!"),
|
||||
],
|
||||
*create_targeting_options(),
|
||||
@@ -158,8 +158,8 @@ schedule_cmd = on_alconna(
|
||||
Subcommand(
|
||||
"暂停",
|
||||
Args[
|
||||
"schedule_id?",
|
||||
int,
|
||||
"schedule_ids?",
|
||||
MultiVar(int),
|
||||
Field(unmatch_tips=lambda text: f"任务ID '{text}' 必须是数字!"),
|
||||
],
|
||||
*create_targeting_options(),
|
||||
@@ -169,8 +169,8 @@ schedule_cmd = on_alconna(
|
||||
Subcommand(
|
||||
"恢复",
|
||||
Args[
|
||||
"schedule_id?",
|
||||
int,
|
||||
"schedule_ids?",
|
||||
MultiVar(int),
|
||||
Field(unmatch_tips=lambda text: f"任务ID '{text}' 必须是数字!"),
|
||||
],
|
||||
*create_targeting_options(),
|
||||
|
||||
Reference in New Issue
Block a user