nightbot.js
v0.2.0
Published
A useful NightBot API wrapper.
Downloads
5
Readme
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