Skip to content

Commit 3cc88ca

Browse files
authored
Merge pull request CloudBotIRC#81 from IlGnome/patch-7
Update halal.py
2 parents 2ec4323 + e91bc5a commit 3cc88ca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/halal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333
'Szechwan'
3434
]
3535

36-
@hook.command('halaal', 'halal')
37-
def serving(text, message):
36+
@hook.command('halaal', 'halal', autohelp = False)
37+
def serving(text, action):
3838
'''Serves halaal dishes to some one in the channel'''
3939
diner = text.strip()
4040

4141
if diner =='':
42-
message('Has {} {} {}'.format(random.choice(quantity), random.choice(quality), random.choice(dish)))
42+
action('Has {} {} {}'.format(random.choice(quantity), random.choice(quality), random.choice(dish)))
4343

4444
else:
45-
message('Serves {} {} {} {}'.format(diner, random.choice(quantity), random.choice(quality), random.choice(dish)))
45+
action('Serves {} {} {} {}'.format(diner, random.choice(quantity), random.choice(quality), random.choice(dish)))
4646

4747

4848
#written by ilgnome

0 commit comments

Comments
 (0)