fix punctuation

This commit is contained in:
Thorsten
2016-07-08 21:19:07 +02:00
parent f8373a61c4
commit 877de9b5c3

View File

@@ -283,15 +283,15 @@ def command_dice(argv, **args):
def command_choose(argv, **args): def command_choose(argv, **args):
alternatives = argv alternatives = argv
binary = ( binary = (
('Yes', 'Yeah!', 'Ok!', 'Ay!', 'Great!'), ('Yes.', 'Yeah!', 'Ok!', 'Ay!', 'Great!'),
('No', 'Naah', 'Meh', 'Nay', 'You stupid?'), ('No.', 'Naah..', 'Meh.', 'Nay.', 'You stupid?'),
('Maybe', 'Dunno', 'I don\'t care') ('Maybe.', 'Dunno.', 'I don\'t care.')
) )
# single or no choice # single or no choice
if len(alternatives) < 2: if len(alternatives) < 2:
return { return {
'msg': '{}: {}.'.format(args['reply_user'], random.choice(random.choice(binary))) 'msg': '{}: {}'.format(args['reply_user'], random.choice(random.choice(binary)))
} }
elif 'choose' not in alternatives: elif 'choose' not in alternatives:
choice = random.choice(alternatives) choice = random.choice(alternatives)