dbi.js
v0.0.2
Published
A wrapper for Discord Bot Index's API
Downloads
14
Maintainers
Readme
Information
dbi.js is an API wrapper for Discord Bot Index using Node.JS to make it easier to use it's API.
Installation
Requirements
Run yarn add dbi.js
or npm i dbi.js
to install, examples are below
Example usage
Posting your bot's guilds
const { Client: dbiClient } = require('../'); // Declaring dbi.js
const Client = new dbiClient('< Your DBI Token Here >', { id: '< Your Bot\'s ID Here >' }); // Creating your DBI client
Client.postStats(11).then(console.log); // Posting your guild count to DBI and logging all results
More examples can be found inside of the /examples
directory