nekobot-api
Version:
NekoBot API wrapper for Node.js
30 lines (25 loc) • 681 B
Markdown
//docs.nekobot.xyz/ "NekoBot API") wrapper for Node.js
```sh
npm i nekobot-api
yarn add nekobot-api
```
```js
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);
})();
```
[ ](https://allvaa.github.io/nekobot-api "Documentaion")
[ ](https: