2.6.3 • Published 3 years ago

voidbots v2.6.3

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

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}`)
})
2.6.3

3 years ago

2.6.1

3 years ago

2.6.2

3 years ago

2.6.0

3 years ago

2.5.4

3 years ago

2.5.0

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.3

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago