Skip to content

Clay-Devs/blapi.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 >>>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published