From e08d89350faef9bb8378f6bb3d155e07670bd541 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Mon, 3 Nov 2025 10:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(help):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E5=8A=9F=E8=83=BD=E7=9A=84=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在帮助插件中新增了对“帮助”命令的快捷方式支持,允许用户通过简化的输入方式获取功能信息。 - 移除了不必要的别名,优化了命令的可用性。 --- zhenxun/builtin_plugins/help/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/help/__init__.py b/zhenxun/builtin_plugins/help/__init__.py index 37dbc0ba..eefa372e 100644 --- a/zhenxun/builtin_plugins/help/__init__.py +++ b/zhenxun/builtin_plugins/help/__init__.py @@ -78,12 +78,18 @@ _matcher = on_alconna( Option("-s|--superuser", action=store_true, help_text="超级用户帮助"), Option("-d|--detail", action=store_true, help_text="详细帮助"), ), - aliases={"help", "帮助", "菜单"}, + aliases={"help", "菜单"}, rule=to_me(), priority=1, block=True, ) +_matcher.shortcut( + r"帮助(?P.*?)", + command="功能", + arguments=["{name}"], + prefix=True, +) _matcher.shortcut( r"详细帮助",