nyxr
v1.2.3
Published
BLAPI is a package to handle posting your discord stats to botlists. It's intended to be used with discord.js, though you can also manually post your stats.
Downloads
14
Readme
nyxr
An official module for interacting with the discordbots.site API
Installation
npm install nyxr
NOTE:
- The api is still WIP (work in progress).
Example of posting server count with supported libraries (Discord.js and Eris)
const Discord = require("discord.js");
const client = new Discord.Client();
const DBS = require("nyxr");
const dbs = new DBS('Your discordbots.site token', client);
//Optional events
dbs.on('posted', () => {
console.log('Server count posted!');
})
dbs.on('error', e => {
console.log(`Oops! ${e}`);
})