From cacb8a287846cb3485114cfc176e66815d7e7bd9 Mon Sep 17 00:00:00 2001 From: Preocts Date: Sun, 13 Nov 2022 13:07:25 -0500 Subject: Enhance spooky react to be more spoopy. This change adjusts the regex pattern used in detecting `spooky` to include fun variants such as `spoopy` and `spookier`. The `k` is replaceable with a `p`, the `y` can be interchanged with `i` allowing `ier` and `iest` endings. (`yer` and `yest` are also valid). The number of `o`s remains at two (2) or more. --- bot/exts/holidays/halloween/spookyreact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/holidays/halloween/spookyreact.py b/bot/exts/holidays/halloween/spookyreact.py index 945bde33..99a84c4f 100644 --- a/bot/exts/holidays/halloween/spookyreact.py +++ b/bot/exts/holidays/halloween/spookyreact.py @@ -11,7 +11,7 @@ from bot.utils.decorators import in_month log = logging.getLogger(__name__) SPOOKY_TRIGGERS = { - "spooky": (r"\bspo{2,}ky\b", "\U0001F47B"), + "spooky": (r"\bspo{2,}[k|p][i|y](er|est)?\b", "\U0001F47B"), "skeleton": (r"\bskeleton\b", "\U0001F480"), "doot": (r"\bdo{2,}t\b", "\U0001F480"), "pumpkin": (r"\bpumpkin\b", "\U0001F383"), -- cgit v1.2.3