0.4.0 • Published 6 years ago

pcdcpoints v0.4.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

PCDC Points

How to use

  1. Create Scores object
let a = new Scores();
  1. Initialize (Makes API request)
a.init(err => {
    if (err) return console.error(err);
    console.log(a.getTeamBoxes(1));
    console.log(a.getTeamPoints(1));
});
  1. Use functions

getTeamBoxes(n: int) - Gets the team number's boxes in JSON format

getTeamPoints(n: int) - Gets the total of the team's points