discordbots.org-api

1.0.2 • Public • Published

Inspired in this package.

Download

npm install discordbots.org-api

Usage

First, do a constructor with your token:

var Helper = require("discordbots.org-api"); 
var DiscordBots = new Helper("token")

Then paste a code to do a designed function, you can do multiple too:

.getBots()

DiscordBots.getBots().then((botData) => {
// your code here
})

.getFilterBots(limit, offset, search)

DiscordBots.getFilterBots(limit, offset, search).then((botData) => {
// your code here
})

.getInfo(botID)

DiscordBots.getInfo(botID).then((botData) => {
// your code here
})

.getStats(botID)

DiscordBots.getStats(botID).then((botData) => {
// your code here
})

.postStats(botID, sc)

DiscordBots.postStats(botID, serverCount).then((botData) => {
// your code here
})

.postStatsShard(botID, shardID, shardCount, serverCount)

DiscordBots.postStatsShard(botID, shardID, shardCount, serverCount).then((botData) => {
// your code here
})

Getting an output element

botData.element //replace element with the element name, for example "botData.id"

Getting a token

Click here

Readme

Keywords

Package Sidebar

Install

npm i discordbots.org-api

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • underforest