aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/spookygif.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/seasons/halloween/spookygif.py')
-rw-r--r--bot/seasons/halloween/spookygif.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/halloween/spookygif.py b/bot/seasons/halloween/spookygif.py
index ba2ad6e5..818de8cd 100644
--- a/bot/seasons/halloween/spookygif.py
+++ b/bot/seasons/halloween/spookygif.py
@@ -12,11 +12,11 @@ log = logging.getLogger(__name__)
class SpookyGif(commands.Cog):
"""A cog to fetch a random spooky gif from the web!"""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name="spookygif", aliases=("sgif", "scarygif"))
- async def spookygif(self, ctx):
+ async def spookygif(self, ctx: commands.Context) -> None:
"""Fetches a random gif from the GIPHY API and responds with it."""
async with ctx.typing():
async with aiohttp.ClientSession() as session:
@@ -33,7 +33,7 @@ class SpookyGif(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Spooky GIF Cog load."""
bot.add_cog(SpookyGif(bot))
log.info("SpookyGif cog loaded")