BLAPI - the BotListAPI
BLAPI is a package to handle posting your discord bot stats to botlists.
It's intended to be used with discord.js, though you can also manually post your stats.
BLAPI fully supports external and discord.js internal sharding with and without the use of the BotBlock API.
npm i blapi
yarn add blapi
The list of all supported bot lists and their respective names for the apiKeys object are listed below
const Discord = ;const blapi = ;let bot = autoReconnect: true ;// Post to the APIs every 60 minutes; you can leave out the repeat delay as it defaults to 30// If the interval is below 3 minutes BLAPI will not use the BotBlock API because of ratelimitsblapi;
Manually, without need of Discord libraries
// If you want to post sharddata you can add the optional parameters// shardID and shardCount should both be integers// shardsArray should be an integer array containing the guildcounts of the respective shardsblapi;
Turn on extended logging
// Use this to get more detailed logging when posting// Errors will always be loggedblapi;
Turn off the use of the BotBlock API
// Use this to turn off BotBlock usage// By default it is set to trueblapi;
The JSON object which includes all the API keys should look like this:
an example would be:
These lists are supported by being hardcoded, but BLAPI will look for new additions on startup via the BotBlock API. BLAPI will try to update its API data daily.
|Domain||Supports guild count||Supports sharding||Is not extremely annoying|
Discordbots.org is still supported even though they blacklisted our API fetching service of choice, BotBlock.
If at any time you find other bot lists have added an API to post your guildcount, let us know on this repo or by contacting T0TProduction#0001 on Discord.
All the people who helped making BLAPI are listed in AUTHORS
By default we use the BotBlock API to fetch and post.