Skip to content
/ npm Public

An official module for interacting with the voidbots.net API

License

Notifications You must be signed in to change notification settings

Void-Bots/npm

Repository files navigation

VoidBots-NPM

An official module for interacting with the voidbots.net API

Installation

npm install voidbots

Documentation

Documentation can be found here

Example

Example of posting server count with supported libraries (Discord.js and Eris)

const Discord = require("discord.js");
const client = new Discord.Client();
const VoidBotsClient = require("voidbots");
const voidbots = new VoidBotsClient('Your voidbots.net token', { autoPost: true, webhookEnabled: true }, client);

// Optional events
voidbots.on('posted', () => {
  console.log('Server count posted!');
})

voidbots.on('error', e => {
 console.log(`Oops! ${e}`);
})

voidbots.on('voted', data => {
  console.log(`${data.user} has voted for ${data.bot}`)
})

About

An official module for interacting with the voidbots.net API

Resources

License

Stars

Watchers

Forks

Packages

No packages published