Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Introduce .birthday command (#223)
Browse files Browse the repository at this point in the history
* Introduce .birthday food command and fix issue #222

* add birthday.json

* Revert "Introduce .birthday food command and fix issue #222"

This reverts commit e375ab3.

* update food.py to have birthday cake command in there
  • Loading branch information
D. Duck authored and linuxdaemon committed Dec 24, 2018
1 parent fd33852 commit c5446f3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions data/food/birthday.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
1 change: 1 addition & 0 deletions plugins/foods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5446f3

Please sign in to comment.