diff options
| author | 2019-10-02 07:52:37 +0530 | |
|---|---|---|
| committer | 2019-10-02 07:52:37 +0530 | |
| commit | efc7a5146f922a0d70375355dfe84c9d7d63ff70 (patch) | |
| tree | b25310b56d008e0d5f05bc7d460a9640b69e7080 /bot/seasons/halloween/spookyreact.py | |
| parent | added function annotations to the check method (diff) | |
| parent | Point setup guide to site wiki (diff) | |
Merge branch 'master' into trivia_quiz
Diffstat (limited to 'bot/seasons/halloween/spookyreact.py')
| -rw-r--r-- | bot/seasons/halloween/spookyreact.py | 8 |
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") |