0.0.2 • Published 6 years ago

dbi.js v0.0.2

Weekly downloads
4
License
MIT
Repository
-
Last release
6 years ago

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