added try/except when adding cog
This commit is contained in:
parent
25914ee735
commit
4d9df6d47b
1 changed files with 5 additions and 1 deletions
|
|
@ -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")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue