Files
xiao/commands/random-res/bunny-fact.js
T
2020-06-17 21:08:27 -04:00

19 lines
473 B
JavaScript

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)]);
}
};