This is a command that send a gif of a scene that they are feeding someone and it delete the command and than it ping you and the person you try to feed!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const axios = require('axios');
const {data} = await axios('https://nekos.best/api/v2/feed');
console.log(data);
// This destory the -feed or -feed [user]
await lib.discord.channels['@0.1.1'].messages.destroy({
message_id: `${context.params.event.id}`,
channel_id: `${context.params.event.channel_id}`,
});
const author = context.params.event.mentions.length
? context.params.event.mentions[0]
: context.params.event.author;
await lib.discord.channels['@0.1.2'].messages.create({
channel_id: context.params.event.channel_id,
content:
author.id === context.params.event.author.id
? `<@${author.id}> feeded themselves because he got nobody to feed :O`
: `<@${context.params.event.author.id}> feeded <@${author.id}>`,
embed: {
title: ``,
image: {
url: data.results[0].url,
height: 100,
width: 100,
},
footer: {
text: `This scene was found in ${data.results[0].anime_name} | Made By Kronos`,
}, // anime of the scene
color: 0xffc0cb,
},
});
// Thanks to Autocode community for people for how to fine the name of the gif when you use it and and other stuff!