Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Allvaa/nekobot-api

Repository files navigation

nekobot-api npm

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);
})();

Documentation