kytra-api
v1.1.4
Published
An Anime Wrapper API that helps how to get random images!
Downloads
3
Maintainers
Readme
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()
//Want NSFW? Example:
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:
//Ejemplo geimer
const Discord = require('discord.js');
const client = new Discord.Client()
//cosas necesarias para sacar los gifs ;)
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
- Mairon73 (Discord:
Mairon#0001
)