From 86cc4a23ac6bb7e03d0120a3356871a37364eedd Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Thu, 3 Aug 2023 17:53:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20func=E5=91=BD=E4=BB=A4=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=A0=87=E5=8F=B7=E6=9C=AA=E8=87=AA=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/cmds/funcs/func.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/qqbot/cmds/funcs/func.py b/pkg/qqbot/cmds/funcs/func.py index 9199292a..f33efd15 100644 --- a/pkg/qqbot/cmds/funcs/func.py +++ b/pkg/qqbot/cmds/funcs/func.py @@ -22,7 +22,8 @@ class FuncCommand(AbstractCommandNode): index = 1 for func in host.__callable_functions__: reply_str += "{}. {}{}:\n{}\n\n".format(index, ("(已禁用) " if not func['enabled'] else ""), func['name'], func['description']) - + index += 1 + reply = [reply_str] return True, reply