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

[BROKEN] A simple API wrapper for Zhycorp Bot List, written in TypeScript

License

Notifications You must be signed in to change notification settings

zhycorpdev-bot/node-zhycorp

Repository files navigation


node-zhycorp


Discord server NPM version NPM downloads Dependencies

Table of contents

About

A simple API wrapper for Zhycorp Nation Bot List, and written in TypeScript

Installation

$ yarn add node-zhycorp

or with NPM

$ npm install node-zhycorp

Usage

  • 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.

Contributing

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.

Links