Files
xiao/commands/response/factcore.js
T
Daniel Odendahl Jr 877f720cfc msg
2017-04-30 22:56:59 +00:00

19 lines
492 B
JavaScript

const { Command } = require('discord.js-commando');
const facts = require('./facts');
module.exports = class FactCoreCommand extends Command {
constructor(client) {
super(client, {
name: 'factcore',
group: 'response',
memberName: 'factcore',
description: 'Says a random Fact Core quote.'
});
}
run(msg) {
const fact = facts[Math.floor(Math.random() * facts.length)];
return msg.say(fact);
}
};