fix: func命令列表标号未自增

This commit is contained in:
RockChinQ
2023-08-03 17:53:43 +08:00
parent 08d1e138bd
commit 86cc4a23ac

View File

@@ -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