From 25914ee7354c6e73998a493b276b9b7b9bff0aa0 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 27 Jan 2024 21:49:33 -0800 Subject: [PATCH] added try/except when adding cog --- extensions/phixxycom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/phixxycom.py b/extensions/phixxycom.py index a78a88d..ceeafd7 100644 --- a/extensions/phixxycom.py +++ b/extensions/phixxycom.py @@ -358,4 +358,8 @@ class PhixxyCom(commands.Cog): await ctx.send(output) async def setup(bot): - await bot.add_cog(PhixxyCom(bot)) \ No newline at end of file + try: + await bot.add_cog(PhixxyCom(bot)) + bot.logger.info("Successfully added PhixxyCom Cog") + except: + bot.logger.info("Failed to load PhixxyCom Cog") \ No newline at end of file