0.2.0 • Published 1 year ago

nightbot.js v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

nightbot.js

A useful NightBot API wrapper.
This project is currently in the development phase.

Installation

npm install nightbot.js

Usage

import { AuthManager, Client } from 'nightbot.js';

(async () => {
    const auth = new AuthManager({
        clientInfo: {
            clientId: 'your app client id',
            clientSecret: 'your app client secret',
            redirectUri: 'your app redirect uri',
        },
        tokenInfo: {
            accessToken: 'your app access token',
            refreshToken: 'your app refresh token',
        },
    });
    const client = new Client(auth);

    const customCommands = await client.command.getCustomCommandsByMe();
})();
  • Other examples are hereOther examples are here

Help

LICENCE

MIT

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago