aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/christmas/hanukkah_embed.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-26 21:22:53 +0100
committerGravatar kwzrd <[email protected]>2020-03-26 21:26:04 +0100
commit6b7caa1835ab809a8ccdfa5ea3ada705acaede70 (patch)
tree67fc3a5d2b026d228afec9b53bf6424a54161e4c /bot/seasons/christmas/hanukkah_embed.py
parentDeseasonify: extend `in_month` doc (diff)
Deseasonify: season-lock commands where appropriate
I left as many available as possible. Some of the commands also handle being outside of their original season, e.g. by showing the amount of time until Hacktoberfest begins, if not currently active. These were left available as well. If a group is to be locked, the `invoke_without_command` param must be False (default), otherwise the group's callback will be circumvented if a valid subcommand is invoked. I adjusted these where necessary, except for the `HacktoberStats` cog, whose cmd group takes an arg, which would require a more involved adjustment - I decided to leave it as is, and instead manually lock both subcommands.
Diffstat (limited to 'bot/seasons/christmas/hanukkah_embed.py')
-rw-r--r--bot/seasons/christmas/hanukkah_embed.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/seasons/christmas/hanukkah_embed.py b/bot/seasons/christmas/hanukkah_embed.py
index aaa02b27..e73a33ad 100644
--- a/bot/seasons/christmas/hanukkah_embed.py
+++ b/bot/seasons/christmas/hanukkah_embed.py
@@ -5,8 +5,8 @@ from typing import List
from discord import Embed
from discord.ext import commands
-from bot.constants import Colours
-
+from bot.constants import Colours, Month
+from bot.decorators import in_month
log = logging.getLogger(__name__)
@@ -34,6 +34,7 @@ class HanukkahEmbed(commands.Cog):
hanukkah_dates.append(date)
return hanukkah_dates
+ @in_month(Month.december)
@commands.command(name='hanukkah', aliases=['chanukah'])
async def hanukkah_festival(self, ctx: commands.Context) -> None:
"""Tells you about the Hanukkah Festivaltime of festival, festival day, etc)."""