Socket
Socket
Sign inDemoInstall

dbots.gg

Package Overview
Dependencies
68
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dbots.gg

Unofficial discord.bots.gg API NPM Package


Version published
Maintainers
1
Created

Readme

Source

Discord.Bots.Gg Unofficial NPM Package

downloadsBadge versionBadge

Installation

npm i dbots.gg

Introduction

The base client is discord.bot.gg 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.

Documentation API Reference | GitHub | NPM

Examples

Posting stats:

const Discord = require("discord.js");
const DBGG = require("dbots.gg");

const client = new Discord.Client();
const Api = new DBGG.Api(client, 'Your discord.bots.gg token');

client.on("ready", async () => {
    await Api.post({
        guildCount: client.guilds.cache.size,
        shardCount: 1
    }, true); //Change it by false if you want no messages in console
})

client.login("Your discord bot token");

With this code your bot guilds and shards count will be posted on discord.bots.gg

Get Stats:

await Api.get("123456789123456789");
// =>
{
  guildCount: 25162,
  shardCount: 1,
  //and other data
}

With this code you can get data from a Discord bot ID

Keywords

FAQs

Last updated on 27 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc