JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29619F
  • License ISC

Es una api que te da imagenes de gatos.

Package Exports

  • miau-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (miau-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

miau-api

Te envia una imagen de un gatito random

Instalación

npm instal --save miau-api

MODO DE USO

const miau = require('miau-api')
//Con el método async
let img = await miau.gato()

console.log(img)

Si lo quieres para Discord este es un ejemplo:

//Necesitas obviamente el package de discord.js
const miau require('miau-api')
//En donde empiezas el evento message necesitas poner async: client.on('message', async message => {
    //                                                                            ^^^^^
const img = await miau.gato()

//Mediante un mensaje normal:
message.channel.send(img)
//Mediante un embed:
const embed = new Discord.MessageEmbed()
.setImage(img)

messge.channel.send(embed)