Merge random animal and animal fact commands

This commit is contained in:
Dragon Fire
2021-01-14 19:31:08 -05:00
parent e43f0b73d4
commit 473ce2b9d9
8 changed files with 19 additions and 71 deletions
-18
View File
@@ -1,18 +0,0 @@
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)]);
}
};
-18
View File
@@ -1,18 +0,0 @@
const Command = require('../../structures/Command');
const facts = require('../../assets/json/cat-fact');
module.exports = class CatFactCommand extends Command {
constructor(client) {
super(client, {
name: 'cat-fact',
aliases: ['neko-fact', 'kitty-fact'],
group: 'random-res',
memberName: 'cat-fact',
description: 'Responds with a random cat fact.'
});
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};
-18
View File
@@ -1,18 +0,0 @@
const Command = require('../../structures/Command');
const facts = require('../../assets/json/dog-fact');
module.exports = class DogFactCommand extends Command {
constructor(client) {
super(client, {
name: 'dog-fact',
aliases: ['puppy-fact'],
group: 'random-res',
memberName: 'dog-fact',
description: 'Responds with a random dog fact.'
});
}
run(msg) {
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
}
};