From 4d9df6d47b94ed911509ee210c51bed29705b1a2 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 27 Jan 2024 21:49:58 -0800 Subject: [PATCH] added try/except when adding cog --- extensions/chatgpt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index c45e824..686f48f 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -456,4 +456,8 @@ class ChatGPT(commands.Cog): async def setup(bot): - await bot.add_cog(ChatGPT(bot)) \ No newline at end of file + try: + await bot.add_cog(ChatGPT(bot)) + bot.logger.info("Successfully added ChatGPT Cog") + except: + bot.logger.info("Failed to load ChatGPT Cog") \ No newline at end of file