diff --git a/willie/modules/dice.py b/willie/modules/dice.py index ce8e5ec296..fcf808cfed 100644 --- a/willie/modules/dice.py +++ b/willie/modules/dice.py @@ -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 = re.split('[\|\\\\\/]', trigger.group(2)) pick = choice(choices) return willie.reply('Your options: %s. My choice: %s' % (', '.join(choices), pick)) choose.commands = ['choice', 'ch', 'choose']