const Command = require('../../framework/Command'); module.exports = class ChooseCommand extends Command { constructor(client) { super(client, { name: 'choose', aliases: ['pick'], group: 'random-res', description: 'Chooses between options you provide.', args: [ { key: 'choices', type: 'string', infinite: true, max: 1950 } ] }); } run(msg, { choices }) { return msg.say(`I choose ${choices[Math.floor(Math.random() * choices.length)]}!`); } };