nekobot-api
v2.1.0
Published
NekoBot API wrapper for Node.js
Downloads
130
Maintainers
Readme
nekobot-api
NekoBot API wrapper for Node.js
Installing
# npm
npm i nekobot-api
# yarn
yarn add nekobot-api
Example Usage
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);
})();