Properly iterate through new_commands

This commit is contained in:
Zeva Rose 2022-04-30 23:17:58 -06:00
parent 6f0d157961
commit e4c3257f1b

View file

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