CommandoClient, Change Filenames, etc.

This commit is contained in:
Daniel Odendahl Jr
2017-05-23 16:14:48 +00:00
parent 38674485d1
commit 67f888e7b0
44 changed files with 77 additions and 54 deletions
+18
View File
@@ -0,0 +1,18 @@
const { Command } = require('discord.js-commando');
const facts = require('../../assets/json/factcore');
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);
}
};