mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
✨ 优化插件开关命令,增强用户体验
This commit is contained in:
parent
2ca735598f
commit
fc047cb517
@ -58,6 +58,19 @@ _status_matcher.shortcut(
|
|||||||
prefix=True,
|
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(
|
_status_matcher.shortcut(
|
||||||
r"开启群被动\s*(?P<name>.+)",
|
r"开启群被动\s*(?P<name>.+)",
|
||||||
@ -74,16 +87,16 @@ _status_matcher.shortcut(
|
|||||||
)
|
)
|
||||||
|
|
||||||
_status_matcher.shortcut(
|
_status_matcher.shortcut(
|
||||||
r"开启(所有|全部)默认群被动",
|
r"开启默认群被动\s*(?P<name>.+)",
|
||||||
command="switch",
|
command="switch",
|
||||||
arguments=["open", "--task", "--all", "-df"],
|
arguments=["open", "{name}", "--task", "-df"],
|
||||||
prefix=True,
|
prefix=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
_status_matcher.shortcut(
|
_status_matcher.shortcut(
|
||||||
r"关闭(所有|全部)默认群被动",
|
r"关闭默认群被动\s*(?P<name>.+)",
|
||||||
command="switch",
|
command="switch",
|
||||||
arguments=["close", "--task", "--all", "-df"],
|
arguments=["close", "{name}", "--task", "-df"],
|
||||||
prefix=True,
|
prefix=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user