]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix upper/lower case
authorThorsten <mail@aero2k.de>
Tue, 12 Dec 2023 20:05:46 +0000 (21:05 +0100)
committerThorsten <mail@aero2k.de>
Tue, 12 Dec 2023 20:05:46 +0000 (21:05 +0100)
distbot/plugins/didyouknow.py

index f4ebf6b403a09ba34a91c4ee4a43356f5ab6385e..a9fdbfa109fdac506f977dcb07704fcb06d734e6 100644 (file)
@@ -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)