class Consumables(Worker):
description = "Om nom nom"
- usage = "bot: cake/coffee/kaffee/keks/schnitzel [please]"
+ usage = "bot: cake/coffee/kaffee/keks/schnitzel/frühstück [please]"
binding_keys = [
"nick.cake.*", "nick.cake",
"nick.schnitzel.*", "nick.schnitzel",
"nick.keks.*", "nick.keks",
"nick.cookie.*", "nick.cookie",
"nick.kaffee.*", "nick.kaffee",
+ "nick.frühstück.*", "nick.frühstück",
]
excuses = [
thing_giphy_translation = {
"kaffee": "coffee",
"keks": "cookie",
+ "frühstück": "breakfast",
}
gif = giphy(thing_giphy_translation.get(thing, thing), 'dc6zaTOxFJmzC')
return Action(msg='{} for {}: {}'.format(thing, sender, gif))