aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/spookyreact.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/seasons/halloween/spookyreact.py')
-rw-r--r--bot/seasons/halloween/spookyreact.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/seasons/halloween/spookyreact.py b/bot/seasons/halloween/spookyreact.py
index 5a086072..90b1254d 100644
--- a/bot/seasons/halloween/spookyreact.py
+++ b/bot/seasons/halloween/spookyreact.py
@@ -2,7 +2,7 @@ import logging
import re
import discord
-from discord.ext.commands import Cog
+from discord.ext.commands import Bot, Cog
log = logging.getLogger(__name__)
@@ -20,11 +20,11 @@ SPOOKY_TRIGGERS = {
class SpookyReact(Cog):
"""A cog that makes the bot react to message triggers."""
- def __init__(self, bot):
+ def __init__(self, bot: Bot):
self.bot = bot
@Cog.listener()
- async def on_message(self, ctx: discord.Message):
+ async def on_message(self, ctx: discord.Message) -> None:
"""
A command to send the seasonalbot github project.
@@ -66,7 +66,7 @@ class SpookyReact(Cog):
return False
-def setup(bot):
+def setup(bot: Bot) -> None:
"""Spooky reaction Cog load."""
bot.add_cog(SpookyReact(bot))
log.info("SpookyReact cog loaded")