Files
xiao/commands/random-res/dog-fact.js
T
2020-03-23 11:42:43 -04:00

19 lines
450 B
JavaScript

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