1.0.0 • Published 4 years ago

boood v1.0.0

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

BOTS OF DISCORD

The official api for https://b0d.glitch.me to post an get bots/users statistics.

Usage Example

Publish the number of servers.

With eris

const Eris = require("eris");
const BT = require('btapi.js');
const BTClient = new BT('BOT_API_TOKEN', 'BOT_ID');
// Replace BOT_API_TOKEN with your bot api token. This can be generated in the web.
var bot = new Eris("BOT_TOKEN");
// Replace BOT_TOKEN with your bot account's token.

bot.on('ready', () => {
  BTClient.postServers(bot.guilds.size).then((response) => {
    console.log('Ready.')
    console.log(response) // For information.
  })
})
bot.connect()

With discord.js

const Discord = require('discord.js');
const BT = require('btapi.js');
const BTClient = new BT('BOT_API_TOKEN', 'BOT_ID');
// Replace BOT_API_TOKEN with your bot api token. This can be generated in the web.
const client = new Discord.Client()

client.on('ready', () => {
  BTClient.postServers(client.guilds.size).then((response) => {
    console.log('Ready.')
    console.log(response) // For information.
  })
})
client.login('BOT_TOKEN');
1.0.0

4 years ago