Add debug statements to update

This commit is contained in:
Zeva Rose 2022-04-30 23:20:19 -06:00
parent e4c3257f1b
commit 9499dc0845

View file

@ -89,9 +89,12 @@ class BotutilCog(Scale):
current_commands = get_all_commands()
origin.pull()
self.logger.info("Changes pulled...")
self.logger.debug("Sleeping for 3 seconds to allow changes")
await asyncio.sleep(3)
self.logger.debug("Finished sleeping, loading new commands")
new_commands = get_all_commands()
for module, commands in new_commands.items():
self.logger.debug(f"Processing {module}")
if module not in current_commands:
self.bot.load_extension(module)
elif len(current_commands[module]) != len(commands):