Bunny Fact Command

This commit is contained in:
Dragon Fire
2020-06-17 21:08:27 -04:00
parent 042f1af026
commit 5b8dfb8302
4 changed files with 73 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
const Command = require('../../structures/Command');
const facts = require('../../assets/json/bunny-fact');
module.exports = class BunnyFactCommand extends Command {
constructor(client) {
super(client, {
name: 'bunny-fact',
aliases: ['bun-fact', 'rabbit-fact'],
group: 'random-res',
memberName: 'bunny-fact',
description: 'Responds with a random bunny fact.'
});
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};