Allvaa / nekobot-api

NekoBot API wrapper for Node.js

Home Page:https://allvaa.github.io/nekobot-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

NekoBot API wrapper for Node.js

https://allvaa.github.io/nekobot-api

License:MIT License


Languages

Language:TypeScript 100.0%