From 924586d718f1d6baff2857506e00bff4d56558eb Mon Sep 17 00:00:00 2001 From: Matt Compton Date: Mon, 31 Jan 2022 16:34:11 +0000 Subject: [PATCH] diagnose error --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index e855b43..58d2d81 100644 --- a/bot.py +++ b/bot.py @@ -43,7 +43,8 @@ async def on_ready(): try: bot.load_extension(cogs_dir + "." + extension) 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()) + "`")