mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
20 lines
520 B
JavaScript
20 lines
520 B
JavaScript
const Command = require('../../structures/Command');
|
|
const snekfetch = require('snekfetch');
|
|
|
|
module.exports = class DogCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'dog',
|
|
group: 'random-img',
|
|
memberName: 'dog',
|
|
description: 'Responds with a random dog image.'
|
|
});
|
|
}
|
|
|
|
async run(msg) {
|
|
const { body } = await snekfetch
|
|
.get('https://random.dog/woof.json');
|
|
return msg.say(body.url);
|
|
}
|
|
};
|