]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix ancient bug
authorThorsten <mail@aero2k.de>
Sun, 4 Jun 2023 08:12:46 +0000 (10:12 +0200)
committerThorsten <mail@aero2k.de>
Sun, 4 Jun 2023 08:12:46 +0000 (10:12 +0200)
distbot/plugins/fun.py

index 94e0df8578b33d87e5bd6ba1c33256280241ce2f..baa9a9b022997b5407ec141714fc89256f5083c2 100644 (file)
@@ -101,7 +101,7 @@ class Consumables(Worker):
         return Action(msg='{}: {}'.format(sender, random.choice(self.excuses).format(thing)))
 
     @staticmethod
-    def give(sender, thing):
+    def give(sender: str, thing: str):
         thing_giphy_translation = {
             "kaffee": "coffee",
             "keks": "cookie",
@@ -115,7 +115,7 @@ class Consumables(Worker):
         thing = words[0]
         sender = get_nick_from_message(msg)
         if len(words) == 2 and words[1] in ('please', 'bitte'):
-            return self.give(sender, thing)
+            return self.give(sender, thing.lower())
         else:
             return self.excuse(sender, thing)