mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 14:31:00 +00:00
fix: func命令列表标号未自增
This commit is contained in:
@@ -22,7 +22,8 @@ class FuncCommand(AbstractCommandNode):
|
|||||||
index = 1
|
index = 1
|
||||||
for func in host.__callable_functions__:
|
for func in host.__callable_functions__:
|
||||||
reply_str += "{}. {}{}:\n{}\n\n".format(index, ("(已禁用) " if not func['enabled'] else ""), func['name'], func['description'])
|
reply_str += "{}. {}{}:\n{}\n\n".format(index, ("(已禁用) " if not func['enabled'] else ""), func['name'], func['description'])
|
||||||
|
index += 1
|
||||||
|
|
||||||
reply = [reply_str]
|
reply = [reply_str]
|
||||||
|
|
||||||
return True, reply
|
return True, reply
|
||||||
|
|||||||
Reference in New Issue
Block a user