Unofficial module for interacting with the Discord.bots.gg API beatX utilises this exact module
This module is based on the code of the Top.gg SDK available here However, the codebase has been modified to work with the discord.bots.gg API
yarn add @beatx/dbots-api
or npm i @beatx/dbots-api
The base client is dbots.Api, and it takes your Discord.bots.gg token and provides you with plenty of methods to interact with the API.
Your Discord.bots.gg token can be found at https://discord.bots.gg/docs
and copying the token.
API Reference | GitHub | NPM
If you're looking for an easy way to post your bot's stats (server count, shard count), check out @beatx/dbots-autoposter
const client = Discord.Client() // Your discord.js client or any other
const { AutoPoster } = require('@beatx/dbots-autoposter')
AutoPoster('dbots-token', client)
.on('posted', () => {
console.log('Posted stats to Discord.bots.gg!')
})
With this your server count and shard count will be posted to Discord.bots.gg
Generated using TypeDoc
Discord ID