✨ 添加开启/关闭所有群被动命令

This commit is contained in:
HibiKier
2024-08-06 21:54:06 +08:00
parent 50d8059e9f
commit 45ad5d8e4e
3 changed files with 82 additions and 16 deletions
@@ -15,7 +15,7 @@ _status_matcher = on_alconna(
"switch",
Option("-t|--task", action=store_true, help_text="被动技能"),
Option("-df|--default", action=store_true, help_text="进群默认开关"),
Option("--all", action=store_true, help_text="全部插件"),
Option("--all", action=store_true, help_text="全部插件/被动"),
Subcommand(
"open",
Args["plugin_name?", [str, int]],
@@ -73,6 +73,20 @@ _status_matcher.shortcut(
prefix=True,
)
_status_matcher.shortcut(
r"开启(所有|全部)群被动",
command="switch",
arguments=["open", "--task", "--all"],
prefix=True,
)
_status_matcher.shortcut(
r"关闭(所有|全部)群被动",
command="switch",
arguments=["close", "--task", "--all"],
prefix=True,
)
_status_matcher.shortcut(
r"开启所有(插件|功能)",