From e4c3257f1b6358a97851ebf3ec21070f4886ba6b Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 30 Apr 2022 23:17:58 -0600 Subject: [PATCH] Properly iterate through new_commands --- jarvis/cogs/botutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/botutil.py b/jarvis/cogs/botutil.py index 7ea30e1..3a3f4f2 100644 --- a/jarvis/cogs/botutil.py +++ b/jarvis/cogs/botutil.py @@ -91,7 +91,7 @@ class BotutilCog(Scale): self.logger.info("Changes pulled...") await asyncio.sleep(3) new_commands = get_all_commands() - for module, commands in new_commands: + for module, commands in new_commands.items(): if module not in current_commands: self.bot.load_extension(module) elif len(current_commands[module]) != len(commands):