From 540047aaef538342bea1786a35622874045d23bf Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sun, 4 Jun 2023 10:12:46 +0200 Subject: [PATCH] fix ancient bug --- distbot/plugins/fun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2