diff --git a/zhenxun/builtin_plugins/admin/plugin_switch/command.py b/zhenxun/builtin_plugins/admin/plugin_switch/command.py index e0b1853f..62056a2e 100644 --- a/zhenxun/builtin_plugins/admin/plugin_switch/command.py +++ b/zhenxun/builtin_plugins/admin/plugin_switch/command.py @@ -58,6 +58,19 @@ _status_matcher.shortcut( prefix=True, ) +_status_matcher.shortcut( + r"开启(所有|全部)默认群被动", + command="switch", + arguments=["open", "--task", "--all", "-df"], + prefix=True, +) + +_status_matcher.shortcut( + r"关闭(所有|全部)默认群被动", + command="switch", + arguments=["close", "--task", "--all", "-df"], + prefix=True, +) _status_matcher.shortcut( r"开启群被动\s*(?P.+)", @@ -74,16 +87,16 @@ _status_matcher.shortcut( ) _status_matcher.shortcut( - r"开启(所有|全部)默认群被动", + r"开启默认群被动\s*(?P.+)", command="switch", - arguments=["open", "--task", "--all", "-df"], + arguments=["open", "{name}", "--task", "-df"], prefix=True, ) _status_matcher.shortcut( - r"关闭(所有|全部)默认群被动", + r"关闭默认群被动\s*(?P.+)", command="switch", - arguments=["close", "--task", "--all", "-df"], + arguments=["close", "{name}", "--task", "-df"], prefix=True, )