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

Latest commit

 

History

History
30 lines (25 loc) · 681 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 681 Bytes

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