1.0.1 • Published 3 years ago

bot-fetch v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

INSTALL

> npm i bot-fetch2

CONTRIBUTOR

you can download .zip

EXAMPLE

var { fetchJson, getBuffer } = require('bot-fetch2');

fetchJson(url, options)
.then(anu => console.log(anu))
// FIX BUG FETCHER JSON

getBuffer(url, options)
// BUG ATAU ENGGAKNYA LAPOR AE

EXAMPLE CASE BOT

case 'tiny':
var { fetchJson } = require('bot-fetch2');
query = body.slice(6)
fetchJson('https://docs-api-fhans.herokuapp.com/api/short/tiny?apikey=FhansGanss&url=${query}')
.then(anu => {
    q = 'link asli : ${query}\nlink short : ${anu.result.link}'
    client.sendMessage(from, q, text, {quoted: mek})
})
break