Files
xiao/commands/response/factcore.js
T
2017-04-25 02:37:14 +00:00

19 lines
500 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(message) {
const fact = facts[Math.floor(Math.random() * facts.length)];
return message.say(fact);
}
};