Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions plugins/foods.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
cookies = ['Chocolate Chip', 'Oatmeal', 'Sugar', 'Oatmeal Raisin', 'Macadamia Nut', 'Jam Thumbprint', 'Medican Wedding',
'Biscotti', 'Oatmeal Cranberry', 'Chocolate Fudge', 'Peanut Butter', 'Pumpkin', 'Lemon Bar',
'Chocolate Oatmeal Fudge', 'Toffee Peanut', 'Danish Sugar', 'Triple Chocolate', 'Oreo']

biscuits = ['Digestive', 'Chocolate Digestive', 'Caramel Digestive', 'Hobnob', 'Chocolate Hobnob', 'Rich Tea Finger', 'Rich Tea',
'Custard Cream', 'Chocolate Finger', 'Ginger Nut', 'Penguin Bar', 'Fruit Shortcake', 'Caramel Wafer', 'Shortbread Round',
'Lemon Puff', 'Elite Chocolate Tea Cake', 'Club Bar', 'Garbaldi', 'Viennese', 'Bourbon Cream', 'Malted Milk', 'Lotus Biscoff',
'Nice', 'Fig Roll', 'Jammie Dodger', 'Oatie', 'Jaffa Cake']

# <Luke> Hey guys, any good ideas for plugins?
# <User> I don't know, something that lists every potato known to man?
Expand Down Expand Up @@ -130,6 +135,24 @@ def cookie(text, action):

action("{} {} a {} {} {} cookie and serves it with a {}!".format(method, user, flavor, size, cookie_type,
side_dish))


@asyncio.coroutine
@hook.command
def biscuit(text, action):
"""<user> - gives <user> a biscuit"""
user = text.strip()

name = random.choice(['bickie', 'biscuit'])
flavor = random.choice(['tasty', 'delectable', 'delicious', 'yummy', 'gorgeous', 'scrumptious', 'luscious', 'irresistible', 'mouth watering'])

if not is_valid(user):
return "I can't give a {} {} to that user.".format(flavor, name)

bickie_type = random.choice(biscuits)
method = random.choice(['makes', 'gives', 'gets', 'buys', 'unwillingly passes', 'grants'])

action("{} {} a {} {} {}!".format(method, user, flavor, size, bickie_type, name))


@asyncio.coroutine
Expand Down