0.4.0 • Published 6 years ago
pcdcpoints v0.4.0
PCDC Points
How to use
- Create Scores object
let a = new Scores();
- Initialize (Makes API request)
a.init(err => {
if (err) return console.error(err);
console.log(a.getTeamBoxes(1));
console.log(a.getTeamPoints(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