From d49129ed77cc0f8061b45f30f5e75c1be1e05af8 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Tue, 12 Dec 2023 21:05:46 +0100 Subject: [PATCH] fix upper/lower case --- distbot/plugins/didyouknow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distbot/plugins/didyouknow.py b/distbot/plugins/didyouknow.py index f4ebf6b..a9fdbfa 100644 --- a/distbot/plugins/didyouknow.py +++ b/distbot/plugins/didyouknow.py @@ -37,7 +37,7 @@ class DidYouKnow(Worker): def parse_body(self, msg): sender = get_nick_from_message(msg) words = get_words(msg) - if "wusstet" in words: + if "wusstet" in map(lambda w: w.lower(), words): fact = self.get_random_fact() self.insert_fact(msg) answer = random.choice(self.answers) -- 2.39.2