added try/except when adding cog

This commit is contained in:
phixxy 2024-01-27 21:50:36 -08:00
parent 4d9df6d47b
commit 03c31d5eba

View file

@ -290,4 +290,8 @@ class PokemonGame(commands.Cog):
await ctx.channel.send(message)
async def setup(bot):
try:
await bot.add_cog(PokemonGame(bot))
bot.logger.info("Successfully added PokemonGame Cog")
except:
bot.logger.info("Failed to load PokemonGame Cog")