Welcome To random-pic.js Repository
animal | anime | couple | landscape | random |
---|---|---|---|---|
boy | eboy | girl | egirl |
const pic = require('random-pic.js') // npm install random-pic.js
// do every thing with response
pic.animal().then((response) => { console.log(response) })
// pic.anime().then((response) => { response })
// pic.boy().then((response) => { response })
// pic.girl().then((response) => { response })
// pic.couple().then((response) => { response })
// pic.eboy().then((response) => { response })
// pic.egirl().then((response) => { response })
// pic.landscape().then((response) => { response })
// pic.random().then((response) => { response })
pic.random().then((response) => {
message.channel.send(response)
})
Package is Returning a Promise, which mean you have to handle any errors which might or might not happen.
Under MIT License
.