From c5446f3177e9df1c8f0fbc89afc6568b4d8e976b Mon Sep 17 00:00:00 2001 From: "D. Duck" Date: Mon, 24 Dec 2018 04:13:43 -0400 Subject: [PATCH] Introduce .birthday command (#223) * Introduce .birthday food command and fix issue #222 * add birthday.json * Revert "Introduce .birthday food command and fix issue #222" This reverts commit e375ab334f9a91529906e43b6801f5eeb8b00fed. * update food.py to have birthday cake command in there --- data/food/birthday.json | 40 ++++++++++++++++++++++++++++++++++++++++ plugins/foods.py | 1 + 2 files changed, 41 insertions(+) create mode 100644 data/food/birthday.json diff --git a/data/food/birthday.json b/data/food/birthday.json new file mode 100644 index 000000000..4d564c464 --- /dev/null +++ b/data/food/birthday.json @@ -0,0 +1,40 @@ +{ + "templates": [ + "{method} {user} a {flavor} {size} piece of {type} birthday cake and sings them Happy Birthday!" + ], + "parts": { + "method": [ + "gives" + ], + "flavor": [ + "tasty", + "delectable", + "delicious", + "yummy", + "scrumptious", + "luscious" + ], + "size": [ + "small", + "medium-sized", + "large" + ], + "type": [ + "Chocolate", + "Ice Cream", + "Angel", + "Boston Cream", + "Bundt", + "Carrot", + "Coffee", + "Devils", + "Fruit", + "Gingerbread", + "Pound", + "Red Velvet", + "Stack", + "Welsh", + "Yokan" + ] + } +} diff --git a/plugins/foods.py b/plugins/foods.py index efe5f03d5..9e230554f 100644 --- a/plugins/foods.py +++ b/plugins/foods.py @@ -56,6 +56,7 @@ def __init__(self, name, unit, *commands, file=None): BasicFood("soup", "Some Soup"), BasicFood("halal", "food", "halal", "halaal"), BasicFood("kosher", "food"), + BasicFood("birthday", "birthday cake"), ) basic_food_data = defaultdict(dict)