mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
21 lines
456 B
JavaScript
21 lines
456 B
JavaScript
const Command = require('../../structures/Command');
|
|
const snekfetch = require('snekfetch');
|
|
|
|
module.exports = class CatCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'cat',
|
|
aliases: ['neko'],
|
|
group: 'random-img',
|
|
memberName: 'cat',
|
|
description: 'Responds with a random cat image.'
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
const { body } = await snekfetch
|
|
.get('http://random.cat/meow');
|
|
return msg.say(body.file);
|
|
}
|
|
};
|