Files
xiao/commands/response/fact-core.js
T
2017-05-23 20:35:51 +00:00

19 lines
514 B
JavaScript

const { Command } = require('discord.js-commando');
const facts = require('../../assets/json/fact-core');
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);
}
};