From 7964fde51b478d5f3422a2a53f74679af4c1f90a Mon Sep 17 00:00:00 2001 From: deadcade Date: Sun, 12 Jun 2022 06:16:37 +0200 Subject: [PATCH] Fix help command --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3c42702..941ac00 100644 --- a/main.py +++ b/main.py @@ -161,10 +161,10 @@ async def help(args, room, event): # No command specified, send command list source_text = f"\nSource Code" if settings["source_url"] else "" helptext = "Admin Commands:\n" - for command in settings["admin_command_list"].keys(): + for command in settings["admin_command_list"]: helptext += settings["help_messages"][command] + "\n" helptext += "\nUser Commands:\n" - for command in settings["command_list"].keys(): + for command in settings["command_list"]: helptext += settings["help_messages"][command] + "\n" helptext += "\n\nArguments: (optional) [required] {admin only, optional}" return await send_text(room.room_id, helptext.replace("{prefix}", settings["prefix"]) + source_text)