diff options
Diffstat (limited to 'bot/seasons/halloween/spookygif.py')
| -rw-r--r-- | bot/seasons/halloween/spookygif.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/bot/seasons/halloween/spookygif.py b/bot/seasons/halloween/spookygif.py index 1233773b..37d46c01 100644 --- a/bot/seasons/halloween/spookygif.py +++ b/bot/seasons/halloween/spookygif.py @@ -9,19 +9,15 @@ from bot.constants import Tokens log = logging.getLogger(__name__) -class SpookyGif: - """ - A cog to fetch a random spooky gif from the web! - """ +class SpookyGif(commands.Cog): + """A cog to fetch a random spooky gif from the web!""" def __init__(self, bot): self.bot = bot @commands.command(name="spookygif", aliases=("sgif", "scarygif")) async def spookygif(self, ctx): - """ - Fetches a random gif from the GIPHY API and responds with it. - """ + """Fetches a random gif from the GIPHY API and responds with it.""" async with ctx.typing(): async with aiohttp.ClientSession() as session: @@ -39,5 +35,7 @@ class SpookyGif: def setup(bot): + """Spooky GIF Cog load.""" + bot.add_cog(SpookyGif(bot)) - log.debug("SpookyGif cog loaded") + log.info("SpookyGif cog loaded") |