aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/spookyreact.py
diff options
context:
space:
mode:
authorGravatar Eivind Teig <[email protected]>2020-04-02 14:39:24 +0200
committerGravatar GitHub <[email protected]>2020-04-02 14:39:24 +0200
commitd77a2bbc50305d05371197f4cfe3354cfca4c627 (patch)
treebe1eed54972d9843f66114311f93b68b579046ac /bot/exts/halloween/spookyreact.py
parentMerge pull request #382 from ks129/game-fuzzy (diff)
parentMerge 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")