guau-api
v1.0.6
Published
Es una api de imagenes de perros random
Downloads
21
Maintainers
Readme
guau-api
Te envia una imagen de un perrito random
Instalación
npm instal --save guau-api
MODO DE USO
const guau = require('guau-api')
//Con el método async
let img = await guau.perro()
console.log(img)
Si lo quieres para Discord este es un ejemplo:
//Necesitas obviamente el package de discord.js
const guau = require('guau-api')
//En donde empiezas el evento message necesitas poner async: client.on('message', async message => {
// ^^^^^
const img = await guau.perro()
//Mediante un mensaje normal:
message.channel.send(img)
//Mediante un embed:
const embed = new Discord.MessageEmbed()
.setImage(img)
messge.channel.send(embed)