Add debug statements to update
This commit is contained in:
parent
e4c3257f1b
commit
9499dc0845
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue