Files
xiao/commands/randomimg/cat.js
T
Daniel Odendahl Jr 14f85f94bd 22.0.0
2017-06-01 08:44:02 +00:00

21 lines
537 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: 'randomimg',
memberName: 'cat',
description: 'Sends a random cat image.'
});
}
async run(msg) {
const { body } = await snekfetch
.get('http://random.cat/meow');
return msg.say(body.file);
}
};