kytra-api
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.4 • Public • Published

    Kytra Logo


    NPM version
    NPM downloads
    Discord

    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

    Install

    npm i kytra-api

    DownloadsWeekly Downloads

    4

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    7.96 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar