nekobot-api
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

/nekobot-api/

    Package Sidebar

    Install

    npm i nekobot-api

    Weekly Downloads

    23

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    18.7 kB

    Total Files

    23

    Last publish

    Collaborators

    • allvaa