Xiao Fact Command

This commit is contained in:
Dragon Fire
2020-04-11 17:47:35 -04:00
parent 41d5bef8b7
commit 356aeb71bb
5 changed files with 76 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
const Command = require('../../structures/Command');
const facts = require('../../assets/json/xiao-fact');
module.exports = class XiaoFactCommand extends Command {
constructor(client) {
super(client, {
name: 'xiao-fact',
aliases: ['iao-fact', 'bot-fact'],
group: 'random-res',
memberName: 'xiao-fact',
description: 'Responds with a random fact about Xiao.'
});
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};