From: Thorsten Date: Sun, 4 Jun 2023 08:12:46 +0000 (+0200) Subject: fix ancient bug X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=540047aaef538342bea1786a35622874045d23bf;p=urlbot-v3.git fix ancient bug --- diff --git a/distbot/plugins/fun.py b/distbot/plugins/fun.py index 94e0df8..baa9a9b 100644 --- a/distbot/plugins/fun.py +++ b/distbot/plugins/fun.py @@ -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)