NekoBot API wrapper for Node.js
# npm
npm i nekobot-api
# yarn
yarn add nekobot-api
const { NekoBot } = require("nekobot-api");
const api = new NekoBot();
// imagegen endpoint
(async () => {
const image = await api.generate("magik", { image: "image url" });
console.log(image);
})();
// image endpoint
(async () => {
const image = await api.get("food");
console.log(image);
})();