text: const {Command} = require('yuuko')
  
  module.exports = new Command(['choose', 'c'], function (msg, args) {
    let options = args.join(' ') // Add spaces back into the string
      .split('').reverse().join('') // Reverse the string
      .split(/\s*,(?!\\)\s*/g) // Split on non-escaped commas, and consume any whitespace before or after
      .filter(o => !o.match(/^\s*$/)) // Remove whitespace-only entries
      .map(o => o.split('').reverse().join('')) // Flip each entry around again so they're the right way (the array is backwards but it doesn't matter)
  
    let option = options[~~(Math.random() * options.length)] // Pick an option at random from the list of entries
    msg.channel.createMessage(`I choose: **${option}**`) // Reply with the option
  })
  