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",
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)