Skip to content

Commit b1c863e

Browse files
authored
Update halal.py
fixed .format for if/else statement
1 parent b6afc0e commit b1c863e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

plugins/halal.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ def serving(text, message):
3939
diner = text.strip()
4040

4141
if diner =='':
42-
out = 'Has {} {} {}'.format('quantity', 'quality', 'dish')
43-
message(out)
42+
message('Has {} {} {}'.format(random.choice(quantity), random.choice(quality), random.choice(dish)))
43+
4444
else:
45-
out = 'Serves {} {} {} {}'.format('diner', 'quantity', 'quality', 'dish')
46-
message(out)
45+
message('Serves {} {} {} {}'.format(diner, random.choice(quantity), random.choice(quality), random.choice(dish)))
4746

4847

4948
#written by ilgnome

0 commit comments

Comments
 (0)