A simple API wrapper for Zhycorp Nation Bot List, and written in TypeScript
$ yarn add node-zhycorp
or with NPM
$ npm install node-zhycorp
- JavaScript:
const { ZhycorpWrapper } = require("node-zhycorp");
const Zhycorp = new ZhycorpWrapper();
// Async/Await
(async function () {
const result = await Zhycorp.getBot("bot id");
console.log(result);
});
// Then
Zhycorp.getBot("bot id").then(console.log).catch(console.error);
- ES6:
import { ZhycorpWrapper } from "node-zhycorp";
const Zhycorp = new ZhycorpWrapper();
// Async/Await
(async function () {
const result = await Zhycorp.getBot("bot id");
console.log(result);
});
// Then
Zhycorp.getBot("bot id").then(console.log).catch(console.error);
Click here for more example.
Before creating an issue, please ensure that it hasn't already been reported/suggested, See the contribution guide if you'd like to submit a PR.