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()
|
current_commands = get_all_commands()
|
||||||
origin.pull()
|
origin.pull()
|
||||||
self.logger.info("Changes pulled...")
|
self.logger.info("Changes pulled...")
|
||||||
|
self.logger.debug("Sleeping for 3 seconds to allow changes")
|
||||||
await asyncio.sleep(3)
|
await asyncio.sleep(3)
|
||||||
|
self.logger.debug("Finished sleeping, loading new commands")
|
||||||
new_commands = get_all_commands()
|
new_commands = get_all_commands()
|
||||||
for module, commands in new_commands.items():
|
for module, commands in new_commands.items():
|
||||||
|
self.logger.debug(f"Processing {module}")
|
||||||
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