-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathturkey.py
More file actions
24 lines (17 loc) · 1.04 KB
/
turkey.py
File metadata and controls
24 lines (17 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# coding=utf-8
import re
import random
from util import hook
cakes = ['oven-roasted turkey', 'honey-glazed ham', 'orange turkey', 'roast turkey', 'fried turkey', 'citrus-marinated turkey', 'honey-mustard glazed ham', 'baked ham', 'pork ham', 'honey glazed turkey']
@hook.command
def turkey(inp, action=None):
"""turkey <user> - [Thanksgiving 2014] Serves <user> some thanksgiving turkey (or ham)."""
inp = inp.strip()
if not re.match("^[A-Za-z0-9_|.-\]\[]*$", inp.lower()):
return "Nope, no turkey for that user!"
turkey_type = random.choice(cakes)
size = random.choice(['small', 'little', 'mid-sized', 'stuffed', 'large', '10lb'])
flavor = random.choice(['tasty', 'delectable', 'delicious', 'yummy', 'filling', 'scrumptious', 'mouthwatering'])
method = random.choice(['makes', 'gives', 'gets', 'buys'])
side_dish = random.choice(['mashed potatoes', 'pumpkin pie', 'squash soup', 'cranberry sauce'])
action("{} {} a {} {} {} and serves it with a side of {}!".format(method, inp, flavor, size, turkey_type, side_dish))