Files
xiao/commands/random/would-you-rather.js
T
Daniel Odendahl Jr f0a6869c85 Bug Fixes
2018-09-13 02:00:09 +00:00

19 lines
519 B
JavaScript

const Command = require('../../structures/Command');
const questions = require('../../assets/json/would-you-rather');
module.exports = class WouldYouRatherCommand extends Command {
constructor(client) {
super(client, {
name: 'would-you-rather',
aliases: ['wy-rather', 'wyr'],
group: 'random',
memberName: 'would-you-rather',
description: 'Responds with a random "Would you rather ...?" question.'
});
}
run(msg) {
return msg.say(questions[Math.floor(Math.random() * questions.length)]);
}
};