removed unused dependencies
added try/except when adding cog
This commit is contained in:
parent
7c50265a18
commit
09f0ea15b9
1 changed files with 5 additions and 4 deletions
|
|
@ -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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue