mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
19 lines
463 B
JavaScript
19 lines
463 B
JavaScript
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)]);
|
|
}
|
|
};
|