About:
An Anime Wrapper API that helps how to get random images!
Basic:
const Kytra = require('kytra-api')
const kytra_gif = new Kytra()
async function getIMG(){
let { image } = await kytra_gif.sfw.hug()
console.log(image)
}
getIMG()
getNSFWImg()
async function getNSFWImg(){
let { image } = await kytra_gif.nsfw.hentai()
console.log(image)
}
Download Method:
const Kytra = require('kytra-api')
const kytra_gifs = new Kytra()
let urlimage = 'https://example.com/file.jpg';
kytra_gifs.download(urlimage, path, 'hug.jpg')
console.log('Image downloaded successfully')
Discord Bot Method:
const Discord = require('discord.js');
const client = new Discord.Client()
const Kytra = require('kytra-api')
const kytra_gifs = new Kytra()
client.on('message', (message) => {
if (message.content.startsWith('hug')){
kytra_gifs.sfw.hug().then(response => {
const embed = new Discord.MessageEmbed()
.setDescription("Mairon se ha abrazado a si mismo")
.setImage(response.image)
message.channel.send(embed)
})
}
})
Support Server
Developers