removed try/except block when adding cog, as sparky does that now
This commit is contained in:
parent
70f008bf82
commit
c7fe4b2c2a
10 changed files with 12 additions and 53 deletions
|
|
@ -60,8 +60,4 @@ class Admin(commands.Cog):
|
|||
self.bot.logger.info(f"Update command attempted by {ctx.author.id}")
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(Admin(bot))
|
||||
bot.logger.info("Successfully added Admin cog")
|
||||
except:
|
||||
bot.logger.exception("Failed to add Admin cog")
|
||||
|
|
@ -71,8 +71,4 @@ class Anime(commands.Cog):
|
|||
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(Anime(bot))
|
||||
bot.logger.info("Successfully added Anime Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load Anime Cog")
|
||||
|
|
@ -475,8 +475,4 @@ class ChatGPT(commands.Cog):
|
|||
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(ChatGPT(bot))
|
||||
bot.logger.info("Successfully added ChatGPT Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load ChatGPT Cog")
|
||||
|
|
@ -47,8 +47,4 @@ class Donate(commands.Cog):
|
|||
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(Donate(bot))
|
||||
bot.logger.info("Successfully added Donate Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load Donate Cog")
|
||||
|
|
@ -113,8 +113,4 @@ class Highscores(commands.Cog):
|
|||
await ctx.send(file=f)
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(Highscores(bot))
|
||||
bot.logger.info("Successfully added Highscores Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load Highscores Cog")
|
||||
|
|
@ -116,10 +116,5 @@ class InkyScreen(commands.Cog):
|
|||
await self.write_to_display(message)
|
||||
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(InkyScreen(bot))
|
||||
bot.logger.info("InkyScreen cog loaded")
|
||||
except:
|
||||
bot.logger.exception("Error loading InkyScreen cog")
|
||||
|
|
@ -113,8 +113,4 @@ class Meme(commands.Cog):
|
|||
await ctx.send('Something went wrong try again. Usage: !meme (topic)')
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(Meme(bot))
|
||||
bot.logger.info("Successfully added Meme Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load Meme Cog")
|
||||
|
|
@ -367,10 +367,6 @@ class PhixxyCom(commands.Cog):
|
|||
await ctx.send(output)
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
asyncssh.set_log_level(30)
|
||||
asyncssh.set_sftp_log_level(30)
|
||||
await bot.add_cog(PhixxyCom(bot))
|
||||
bot.logger.info("Successfully added PhixxyCom Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load PhixxyCom Cog")
|
||||
|
|
@ -69,8 +69,4 @@ class Pokedex(commands.Cog):
|
|||
await ctx.channel.send(message)
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(Pokedex(bot))
|
||||
bot.logger.info("Successfully added Pokedex Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load Pokedex Cog")
|
||||
|
|
@ -392,9 +392,5 @@ class StableDiffusion(commands.Cog):
|
|||
|
||||
|
||||
async def setup(bot):
|
||||
try:
|
||||
await bot.add_cog(StableDiffusion(bot))
|
||||
bot.logger.info("Successfully added StableDiffusion Cog")
|
||||
except:
|
||||
bot.logger.info("Failed to load StableDiffusion Cog")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue