Skip to content

Commit bd36492

Browse files
committed
april fools 2026
1 parent 0f9b9bb commit bd36492

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bmt_discord_bot/cogs/viraj.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from discord.ext import commands
44

55
PATTERN = re.compile(
6-
r"\b(\w*)(ise|isation|isations|ising|ised|ises|iser|isers)\b",
6+
r"\b(\w*)(ize|ization|izations|izing|ized|izes|izer|izers)\b",
77
re.IGNORECASE,
88
)
99
IGNORED_CATEGORY_IDS = [1031955833371758754]
@@ -20,7 +20,7 @@ def cog_check(self, ctx):
2020

2121
def _correct_text(self, match):
2222
prefix, suffix = match.groups()
23-
return f"*{prefix}{suffix.replace('is', 'iz')}"
23+
return f"*{prefix}{suffix.replace('iz', 'is')}"
2424

2525
@commands.Cog.listener()
2626
async def on_message(self, message):
@@ -30,8 +30,8 @@ async def on_message(self, message):
3030
return
3131
if message.channel.category_id in IGNORED_CATEGORY_IDS:
3232
return
33-
if "proctor" in message.content.casefold() and random.random() < 0.05:
34-
await message.channel.send("*invigilator")
33+
if "invigilator" in message.content.casefold() and random.random() < 0.05:
34+
await message.channel.send("*proctor")
3535
for match in PATTERN.finditer(message.content):
3636
await message.channel.send(self._correct_text(match))
3737

0 commit comments

Comments
 (0)