Files
xiao/commands/random/would-you-rather.js
T
Daniel Odendahl Jr b6afded306 Updates
2017-11-09 00:02:59 +00:00

19 lines
511 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',
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)]);
}
};