Files
xiao/commands/response/fortune.js
T
Daniel Odendahl Jr 7802bb49cb Clean-Ups
2017-05-31 04:41:01 +00:00

19 lines
514 B
JavaScript

const Command = require('../../structures/Command');
const fortunes = require('../../assets/json/fortune');
module.exports = class FortuneCookieCommand extends Command {
constructor(client) {
super(client, {
name: 'fortune',
group: 'response',
memberName: 'fortune',
description: 'Fortune Cookie.'
});
}
run(msg) {
const fortune = fortunes[Math.floor(Math.random() * fortunes.length)];
return msg.say(fortune);
}
};