Skip to content

Commit

Permalink
Adding extra seperators for choice
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitri Molenaars <Tyrope@TyRope.nl>
  • Loading branch information
tyrope committed Mar 20, 2013
1 parent e285198 commit a0f48c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion willie/modules/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def choose(willie, trigger):
"""
if not trigger.group(2):
return willie.reply('I\'d choose an option, but you didn\'t give me any.')
choices = trigger.group(2).split('|')
choices = trigger.group(2).split('|').split('/').split('\\')
pick = choice(choices)
return willie.reply('Your options: %s. My choice: %s' % (', '.join(choices), pick))
choose.commands = ['choice', 'ch', 'choose']
Expand Down

0 comments on commit a0f48c7

Please sign in to comment.