]> git.aero2k.de Git - urlbot-v3.git/commitdiff
frühstück
authorThorsten S <mail@aero2k.de>
Mon, 22 Apr 2019 06:45:38 +0000 (08:45 +0200)
committerThorsten S <mail@aero2k.de>
Mon, 22 Apr 2019 06:45:38 +0000 (08:45 +0200)
distbot/plugins/fun.py

index 0199773e7196a16cfcd1c0d7fc4053492deaa1b0..23f66a3821a7acc8a6a244900aba7bee642cf9aa 100644 (file)
@@ -67,13 +67,14 @@ class Slap(Worker):
 
 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 = [
@@ -101,6 +102,7 @@ class Consumables(Worker):
         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))