Skip to content

Commit b6afc0e

Browse files
authored
Create halal.py
1 parent 63052bb commit b6afc0e

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

plugins/halal.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
out = 'Has {} {} {}'.format('quantity', 'quality', 'dish')
43+
message(out)
44+
else:
45+
out = 'Serves {} {} {} {}'.format('diner', 'quantity', 'quality', 'dish')
46+
message(out)
47+
48+
49+
#written by ilgnome
50+
#find me in #gonzobot

0 commit comments

Comments
 (0)