discord-botlist.eu api
Welcome 👋
This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api. It's made by their developer.
@info
This is the same npm package as the official npm package from @dbleu/node, I just uploaded it as a perfectly name rich npm package
Install
npm i discord-botlisteu
Getting started
const API = require("discord-botlisteu")
const dbleu = new API("Your API-Token")
dbleu.getVotes().then(votes => {
console.log(votes)
})
dbleu.ping().then(data => {
console.log(data)
})
dbleu.updateStats(serverCount).then(data => {
console.log(data)
})
.getVotes()
Promise<Array>
.ping()
Promise<Bot>
.updateStats(serverCount)
Parameter | Type |
---|
serverCount | Number or string |
{
"updated": Array<string>,
"bot": Bot
}
Bot