This command is a very simple cuddle command. You use it like this: -cuddle [user] or -cuddle is a very simple and cool command to use with a friend or anyone to cuddle, and it will tell you the name of the anime in the bottom of the embed!
// This command does give error but it still work!!!!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const axios = require('axios');
const {data} = await axios('https://nekos.best/api/v2/cuddle'); // the api i use
console.log(data);
// This command destroy/delete the -cuddle or -cuddle [user] **ONLY**
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}> Cuddle themselves cuz he lonely 😭` // you can change this if you want.
: `<@${context.params.event.author.id}> Cuddled <@${author.id}> so tightly`, // Same as this you can change it if you want!.
embed: {
title: ``,
image: {
url: data.results[0].url,
},
footer: {
text: `* Was founded in* [ ${data.results[0].anime_name} ] | Made by Kronos#7301`,
}, // The name of the anime in the gif and you can change that " Made by Kronos7301"
color: 0xffc0cb, // You can change this, if you don't know how to check at https://autocode.com/tools/discord/embed-builder/
},
});
// If you are going to use this, at least give me some credit. If you don't want to, you can do that. I really don't mind.
// Made by Kronos