1.0.0 • Published 3 years ago

@dbleu/node v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Install

npm i @dbleu/node

Getting started

const API = require("@dbleu/node")
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
}

Bot