Properly iterate through new_commands
This commit is contained in:
parent
6f0d157961
commit
e4c3257f1b
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class BotutilCog(Scale):
|
||||||
self.logger.info("Changes pulled...")
|
self.logger.info("Changes pulled...")
|
||||||
await asyncio.sleep(3)
|
await asyncio.sleep(3)
|
||||||
new_commands = get_all_commands()
|
new_commands = get_all_commands()
|
||||||
for module, commands in new_commands:
|
for module, commands in new_commands.items():
|
||||||
if module not in current_commands:
|
if module not in current_commands:
|
||||||
self.bot.load_extension(module)
|
self.bot.load_extension(module)
|
||||||
elif len(current_commands[module]) != len(commands):
|
elif len(current_commands[module]) != len(commands):
|
||||||
|
|
Loading…
Add table
Reference in a new issue