I just want a neko using nekos.best api~
import {gimme_neko} from 'https://deno.land/x/[email protected]/mod.ts';
SLIME: smth like-
import {gimme_neko, neko_url} from 'https://deno.land/x/[email protected]/mod.ts'; // import
const neko: neko_url = await gimme_neko(); // (await) cus returns a Promise<>
console.log(neko); // log neko
$ https://nekos.best/api/v2/neko/07996548-24a8-44b5-9200-2a0a74309eb3.png
(or)
$ undefined
SLIME: undefined
cus error ;-;
$ SLIME: theres no neko here~
SLIME: never really happens but JIC (just-in-case)