1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

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):
alternatives = argv
binary = (
('Yes', 'Yeah!', 'Ok!', 'Ay!', 'Great!'),
('No', 'Naah', 'Meh', 'Nay', 'You stupid?'),
('Maybe', 'Dunno', 'I don\'t care')
('Yes.', 'Yeah!', 'Ok!', 'Ay!', 'Great!'),
('No.', 'Naah..', 'Meh.', 'Nay.', 'You stupid?'),
('Maybe.', 'Dunno.', 'I don\'t care.')
)
# single or no choice
if len(alternatives) < 2:
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:
choice = random.choice(alternatives)