From fc047cb5175d8215a594af123ae7bd0e9e76a02c Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Mon, 30 Jun 2025 22:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BC=98=E5=8C=96=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=BC=80=E5=85=B3=E5=91=BD=E4=BB=A4=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/plugin_switch/command.py | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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, )