From a962361c63fde785387b355ce1c5158b28295e39 Mon Sep 17 00:00:00 2001 From: Cassius0924 <2670226747@qq.com> Date: Sat, 9 Mar 2024 11:44:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E5=91=BD=E4=BB=A4=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E6=97=B6help=E5=91=BD=E4=BB=A4=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wechatter/commands/_commands/help.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wechatter/commands/_commands/help.py b/wechatter/commands/_commands/help.py index d181177..a4bed56 100644 --- a/wechatter/commands/_commands/help.py +++ b/wechatter/commands/_commands/help.py @@ -30,6 +30,9 @@ def get_help_msg() -> str: continue cmd_msg = "" for key in value["keys"]: - cmd_msg += config["command_prefix"] + key + "\n" + if config.get("command_prefix"): + cmd_msg += config["command_prefix"] + key + "\n" + else: + cmd_msg += key + "\n" help_msg += cmd_msg + "-->「" + value["desc"] + "」\n\n" return help_msg