diff options
| author | 2020-04-02 14:39:24 +0200 | |
|---|---|---|
| committer | 2020-04-02 14:39:24 +0200 | |
| commit | d77a2bbc50305d05371197f4cfe3354cfca4c627 (patch) | |
| tree | be1eed54972d9843f66114311f93b68b579046ac /bot/exts/halloween/spookyreact.py | |
| parent | Merge pull request #382 from ks129/game-fuzzy (diff) | |
| parent | Merge master: adjust `Space` cog location (diff) | |
Merge pull request #329 from python-discord/seasonal-purge
Deseasonify: Make all cogs available year-round, and manage only branding by season.
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/halloween/spookyreact.py (renamed from bot/seasons/halloween/spookyreact.py) | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/seasons/halloween/spookyreact.py b/bot/exts/halloween/spookyreact.py index 90b1254d..e5945aea 100644 --- a/bot/seasons/halloween/spookyreact.py +++ b/bot/exts/halloween/spookyreact.py @@ -4,6 +4,9 @@ import re import discord from discord.ext.commands import Bot, Cog +from bot.constants import Month +from bot.utils.decorators import in_month + log = logging.getLogger(__name__) SPOOKY_TRIGGERS = { @@ -23,6 +26,7 @@ class SpookyReact(Cog): def __init__(self, bot: Bot): self.bot = bot + @in_month(Month.OCTOBER) @Cog.listener() async def on_message(self, ctx: discord.Message) -> None: """ @@ -69,4 +73,3 @@ class SpookyReact(Cog): def setup(bot: Bot) -> None: """Spooky reaction Cog load.""" bot.add_cog(SpookyReact(bot)) - log.info("SpookyReact cog loaded") |