fix punctuation
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user