Socket
Socket
Sign inDemoInstall

kytra-api

Package Overview
Dependencies
15
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kytra-api

An Anime Wrapper API that helps how to get random images!


Version published
Weekly downloads
9
increased by200%
Maintainers
1
Install size
807 kB
Created
Weekly downloads
 

Readme

Source

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

  • Join Here

Developers

Keywords

FAQs

Last updated on 11 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc