A simple node.js wrapper for the MC Championship Event API.
Install the package using npm install node-mcc-api
and import the MCCAPI
class.
import MCCAPI from 'node-mcc-api'
Output every member on the red team:
MCCAPI.getParticipantsOnTeam("RED").then(response => {
console.log(response.data);
});
Print information about the current event cycle:
MCCAPI.getEventInformation().then(response => {
console.log(`The current Event is MCC ${response.data.event}.`);
});
Print the current holder of the Most eliminations
in Rocket Spleef (Rush):
MCCAPI.getHallOfFameStats().then(response => {
console.log(response.data.MG_ROCKET_SPLEEF["Most eliminations"]);
});
Print information about the fourth game in MCC 3:
MCCAPI.getRundownForEvent("3").then(response => {
console.log(response.data.history["3"]);
});