removed try/except block when adding cog, as sparky does that now

This commit is contained in:
phixxy 2024-02-04 00:21:35 -08:00
parent 70f008bf82
commit c7fe4b2c2a
10 changed files with 12 additions and 53 deletions

View file

@ -60,8 +60,4 @@ class Admin(commands.Cog):
self.bot.logger.info(f"Update command attempted by {ctx.author.id}") self.bot.logger.info(f"Update command attempted by {ctx.author.id}")
async def setup(bot): async def setup(bot):
try:
await bot.add_cog(Admin(bot)) await bot.add_cog(Admin(bot))
bot.logger.info("Successfully added Admin cog")
except:
bot.logger.exception("Failed to add Admin cog")

View file

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

View file

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

View file

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

View file

@ -113,8 +113,4 @@ class Highscores(commands.Cog):
await ctx.send(file=f) await ctx.send(file=f)
async def setup(bot): async def setup(bot):
try:
await bot.add_cog(Highscores(bot)) await bot.add_cog(Highscores(bot))
bot.logger.info("Successfully added Highscores Cog")
except:
bot.logger.info("Failed to load Highscores Cog")

View file

@ -116,10 +116,5 @@ class InkyScreen(commands.Cog):
await self.write_to_display(message) await self.write_to_display(message)
async def setup(bot): async def setup(bot):
try:
await bot.add_cog(InkyScreen(bot)) await bot.add_cog(InkyScreen(bot))
bot.logger.info("InkyScreen cog loaded")
except:
bot.logger.exception("Error loading InkyScreen cog")

View file

@ -113,8 +113,4 @@ class Meme(commands.Cog):
await ctx.send('Something went wrong try again. Usage: !meme (topic)') await ctx.send('Something went wrong try again. Usage: !meme (topic)')
async def setup(bot): async def setup(bot):
try:
await bot.add_cog(Meme(bot)) await bot.add_cog(Meme(bot))
bot.logger.info("Successfully added Meme Cog")
except:
bot.logger.info("Failed to load Meme Cog")

View file

@ -367,10 +367,6 @@ class PhixxyCom(commands.Cog):
await ctx.send(output) await ctx.send(output)
async def setup(bot): async def setup(bot):
try:
asyncssh.set_log_level(30) asyncssh.set_log_level(30)
asyncssh.set_sftp_log_level(30) asyncssh.set_sftp_log_level(30)
await bot.add_cog(PhixxyCom(bot)) await bot.add_cog(PhixxyCom(bot))
bot.logger.info("Successfully added PhixxyCom Cog")
except:
bot.logger.info("Failed to load PhixxyCom Cog")

View file

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

View file

@ -392,9 +392,5 @@ class StableDiffusion(commands.Cog):
async def setup(bot): async def setup(bot):
try:
await bot.add_cog(StableDiffusion(bot)) await bot.add_cog(StableDiffusion(bot))
bot.logger.info("Successfully added StableDiffusion Cog")
except:
bot.logger.info("Failed to load StableDiffusion Cog")