23 lines
567 B
JavaScript
23 lines
567 B
JavaScript
|
const superagent = require("snekfetch");
|
||
|
const Discord = require('discord.js')
|
||
|
|
||
|
|
||
|
module.exports = {
|
||
|
name: "cat",
|
||
|
category: "fun",
|
||
|
description: "Sendet ein zufälliges Bild einer Katze",
|
||
|
usage: "[command]",
|
||
|
run: async (client, message, args, level) => {
|
||
|
//command
|
||
|
superagent.get('https://nekos.life/api/v2/img/meow')
|
||
|
.end((err, response) => {
|
||
|
const lewdembed = new Discord.MessageEmbed()
|
||
|
.setTitle("Random cat")
|
||
|
.setImage(response.body.url)
|
||
|
.setColor(`#000000`)
|
||
|
.setFooter(`owo`)
|
||
|
.setURL(response.body.url);
|
||
|
message.channel.send(lewdembed);
|
||
|
})
|
||
|
}
|
||
|
};
|