added try/except when adding cog

This commit is contained in:
phixxy 2024-01-27 21:49:58 -08:00
parent 25914ee735
commit 4d9df6d47b

View file

@ -456,4 +456,8 @@ class ChatGPT(commands.Cog):
async def setup(bot): async def setup(bot):
await bot.add_cog(ChatGPT(bot)) try:
await bot.add_cog(ChatGPT(bot))
bot.logger.info("Successfully added ChatGPT Cog")
except:
bot.logger.info("Failed to load ChatGPT Cog")