blapi.js

1.1.1 • Public • Published

Botlist.xyz API | cblapi

Official module for interacting with the botlist.xyz API

Installation

npm install blapi.js

Example

const BL = require('blapi.js')
const Discord = require('discord.js')
const client = new Discord.Client()
const bl = new BL('BL Token', client)


// Events

bl.on('posted', () => {
    console.log('Succesfully posted!')
})

bl.on('error', err => {
    console.error(`Oops! ${err}`)
})


// Usage
client.on('ready', () => {
    bl.postStats(client.guilds.cache.size, client.shard.id, client.shard.count)//if using sharding
    bl.postStats(client.guilds.cache.size) // no sharding
})

Documentation

being worked on

Changelog

v1.1.0

Performance tweaks

v1.1.0-prebuild

rebranded all tools

v1.0.9

Remove unused code
Update Vote api
Simplified the TypeScript files

v1.0.8 and below

<<< Not Supported >>>

Package Sidebar

Install

npm i blapi.js

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

14.3 kB

Total Files

7

Last publish

Collaborators

  • pyxelcodes