Files
xiao/commands/random-res/would-you-rather.js
T
Daniel Odendahl Jr 6a9d24cf87 Beep beep
2017-10-08 18:59:52 +00:00

19 lines
508 B
JavaScript

const { Command } = require('discord.js-commando');
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'],
group: 'random-res',
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)]);
}
};