diagnose error

pull/1/head
Matt Compton 3 years ago
parent c44ce437b9
commit 924586d718

@ -43,7 +43,8 @@ async def on_ready():
try: try:
bot.load_extension(cogs_dir + "." + extension) bot.load_extension(cogs_dir + "." + extension)
except (Exception) as e: except (Exception) as e:
await chan.send(f"Failed to load extension `{extension}`.") await chan.send(f"Failed to load extension `{extension}`, reason was:")
await chan.send("```" + str(e) + "```")
await chan.send("Started/restarted at: `" + str(datetime.now()) + "`") await chan.send("Started/restarted at: `" + str(datetime.now()) + "`")

Loading…
Cancel
Save