Skip to content

Commit

Permalink
fix: func命令列表标号未自增
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Aug 3, 2023
1 parent 08d1e13 commit 86cc4a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/qqbot/cmds/funcs/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def process(cls, ctx: Context) -> tuple[bool, list]:
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

0 comments on commit 86cc4a2

Please sign in to comment.