Files
xiao/commands/response/factcore.js
T
Daniel Odendahl Jr 52e299b1b4 Auto-Aliases
2017-05-07 17:34:59 +00:00

19 lines
494 B
JavaScript

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