dblapi.js
An official module for interacting with the top.gg API
Installation
npm install dblapi.js
Documentation
Documentation can be found here
Example
Example of posting server count with supported libraries (Discord.js and Eris)
const Discord = ;const client = ;const DBL = ;const dbl = 'Your top.gg token' client; // Optional eventsdbl dbl
Example of using webhooks to receive vote updates
const DBL = ;const dbl = yourDBLTokenHere webhookPort: 5000 webhookAuth: 'password' ;dblwebhook;dblwebhook;