Files
xiao/commands/random-res/choose.js
T
2024-05-21 21:02:12 -04:00

25 lines
503 B
JavaScript

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)]}!`);
}
};