Skip to content

Commit 7406703

Browse files
authored
Merge pull request CloudBotIRC#78 from IlGnome/patch-4
Create halal.py
2 parents 0979bba + b1c863e commit 7406703

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

plugins/halal.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#halaal for gonzobot
2+
import random
3+
from cloudbot import hook
4+
5+
6+
quantity = ['a little bit of',
7+
'a heaping pile of',
8+
'a moderate serving of',
9+
'a taste of',
10+
'just a smell of',
11+
]
12+
13+
14+
quality = [ 'fresh made',
15+
'left over',
16+
'just out of the oven'
17+
18+
]
19+
20+
dish = [ 'Rice and Goat Meat',
21+
'Goat Curry',
22+
'Hummus bi Tahina',
23+
'Läghmän',
24+
'Mutton biryani',
25+
'Kabuli palao',
26+
'Shakshouka',
27+
'Mutton Msala',
28+
'Fatteh Betnjan',
29+
'Caprese stuffed chicken breast',
30+
'Maqloobeh',
31+
'Koofteh berenji',
32+
'Fish Makkanwala',
33+
'Szechwan'
34+
]
35+
36+
@hook.command('halaal', 'halal')
37+
def serving(text, message):
38+
'''Serves halaal dishes to some one in the channel'''
39+
diner = text.strip()
40+
41+
if diner =='':
42+
message('Has {} {} {}'.format(random.choice(quantity), random.choice(quality), random.choice(dish)))
43+
44+
else:
45+
message('Serves {} {} {} {}'.format(diner, random.choice(quantity), random.choice(quality), random.choice(dish)))
46+
47+
48+
#written by ilgnome
49+
#find me in #gonzobot

0 commit comments

Comments
 (0)