discordbots.org-api
v1.0.2
Published
A discordbots.org API wrapper.
Downloads
3
Readme
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