diff options
| author | 2023-01-15 21:24:34 -0500 | |
|---|---|---|
| committer | 2023-01-15 21:24:34 -0500 | |
| commit | bd4adec3e07e4807d031588ca70b51aeb200be8d (patch) | |
| tree | 34dfe4a774b363ec07f93f1a33c551d42cf94bc3 /bot/exts/holidays | |
| parent | fixed typo: spelling mistake (#1183) (diff) | |
De-Halloween-ify reaction Cog: move file, rename internals
Additional pending reactions mean putting the reaction Cog in the
halloween directory no longer makes sense. Approriate renamings follow.
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/holidays/holidayreact.py (renamed from bot/exts/holidays/halloween/spookyreact.py) | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/bot/exts/holidays/halloween/spookyreact.py b/bot/exts/holidays/holidayreact.py index 99a84c4f..f0905f03 100644 --- a/bot/exts/holidays/halloween/spookyreact.py +++ b/bot/exts/holidays/holidayreact.py @@ -22,7 +22,7 @@ SPOOKY_TRIGGERS = {  } -class SpookyReact(Cog): +class HolidayReact(Cog):      """A cog that makes the bot react to message triggers."""      def __init__(self, bot: Bot): @@ -31,7 +31,7 @@ class SpookyReact(Cog):      @in_month(Month.OCTOBER)      @Cog.listener()      async def on_message(self, message: discord.Message) -> None: -        """Triggered when the bot sees a message in October.""" +        """Triggered when the bot sees a message in a holiday month."""          for name, trigger in SPOOKY_TRIGGERS.items():              trigger_test = re.search(trigger[0], message.content.lower())              if trigger_test: @@ -67,5 +67,5 @@ class SpookyReact(Cog):  async def setup(bot: Bot) -> None: -    """Load the Spooky Reaction Cog.""" -    await bot.add_cog(SpookyReact(bot)) +    """Load the Holiday Reaction Cog.""" +    await bot.add_cog(HolidayReact(bot)) | 
