devilish-api
v2.0.3
Published
> devilish-api is a simple image fetcher, with thousands of images!
Downloads
3
Readme
devilish-api
About:
devilish-api is a simple image fetcher, with thousands of images!
Basic Usage
const devilishAPI = require('devilish-api')
const API = new devilishAPI()
async function getRandomImg(){
let { data, id } = await API.nsfw.ass()
console.log(data, id)
}
getRandomImg()
Output:
https://dl.phncdn.com/pics/gifs/018/490/241/(m=ldpwiqacxtE_Ai)(mh=RGL7oxBTWdbOYZ-S)18490241b.gif
Endpoint Methods
API.nsfw
:
| Endpoint | Description | |----------|---------------------| | ass() | Sends a ASS gif, or image! |
Discord Example
const discord = require('discord.js');
const bot = new discord.Client()
const devilishAPI = require('devilish-api')
const API = new devilishAPI()
bot.on('message', function(message){
if (m.content.startsWith('ass')){
API.nsfw.ass().then(response => {
message.channel.send(response.data)
})
}
})
bot.login()