File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments