From 5eded50c534ca062e26131ed036b4434ea0dae2b Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Thu, 18 May 2023 19:44:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=97=B6=E7=9A=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/cmds/aamgr.py | 2 +- tips-custom-template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/qqbot/cmds/aamgr.py b/pkg/qqbot/cmds/aamgr.py index d380a9c9..2f535102 100644 --- a/pkg/qqbot/cmds/aamgr.py +++ b/pkg/qqbot/cmds/aamgr.py @@ -260,8 +260,8 @@ def execute(context: Context) -> list: while True: try: - logging.debug('执行指令: {}'.format(path)) node = __command_list__[path] + logging.debug('执行指令: {}'.format(path)) # 检查权限 if ctx.privilege < node['privilege']: diff --git a/tips-custom-template.py b/tips-custom-template.py index 6605baa5..09eb7f19 100644 --- a/tips-custom-template.py +++ b/tips-custom-template.py @@ -27,7 +27,7 @@ replys_message = "[bot]err:请求超时" # 指令权限不足提示 command_admin_message = "[bot]err:权限不足: " # 指令无效提示 -command_err_message = "[bot]err:指令执行出错:" +command_err_message = "[bot]err:指令不存在:" # 会话重置提示 command_reset_message = "[bot]:会话已重置"