discord-botlisteu
v1.0.1
Published
The node.js library for the discord-botlist.eu HTTP api
Downloads
4
Readme
@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")
// Get an array with all dates when the bot was voted for
dbleu.getVotes().then(votes => {
console.log(votes)
})
// Get the current information about the bot
dbleu.ping().then(data => {
console.log(data)
})
// Update the bot stats
dbleu.updateStats(serverCount).then(data => {
console.log(data)
})
.getVotes()
| Parameter | Type |
| --- | --- |
| none | none |
Promise<Array>
.ping()
| Parameter | Type |
| --- | --- |
| none | none |
Promise<Bot>
.updateStats(serverCount)
| Parameter | Type |
| --- | --- |
| serverCount |Number
or string
|
{ "updated": Array<string>, "bot": Bot }