removed unused dependencies

added try/except when adding cog
This commit is contained in:
phixxy 2024-01-27 21:48:53 -08:00
parent 7c50265a18
commit 09f0ea15b9

View file

@ -1,9 +1,6 @@
#plugin for sparkytron3000
import os
import random
import time
import aiohttp
import discord
from discord.ext import commands
class Meme(commands.Cog):
@ -116,4 +113,8 @@ class Meme(commands.Cog):
await ctx.send('Something went wrong try again. Usage: !meme (topic)')
async def setup(bot):
await bot.add_cog(Meme(bot))
try:
await bot.add_cog(Meme(bot))
bot.logger.info("Successfully added Meme Cog")
except:
bot.logger.info("Failed to load Meme Cog")