From 1f7b6d986337a21cd60f46beac9ae20a17d8119c Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 7 Nov 2023 20:11:24 -0600 Subject: [PATCH] Parse messages and nick to lowercase before parsing --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index de21da5..40a6a53 100644 --- a/bot.py +++ b/bot.py @@ -264,9 +264,9 @@ class bot: for cmd in cmds.data: triggers = [cmd] triggers.extend(cmds.data[cmd]["aliases"]) - triggers = list(call.replace("$BOTNICK", self.nick) for call in triggers) + triggers = list(call.replace("$BOTNICK", self.nick.lower()) for call in triggers) if mfind( - message, + message.lower(), triggers, cmds.data[cmd]["prefix"], ):