1.7.0 • Published 10 months ago

node-mcc-api v1.7.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

node-mcc-api

A simple node.js wrapper for the MC Championship Event API.

Getting started

Install the package using npm install node-mcc-api and import the MCCAPI class.

import MCCAPI from 'node-mcc-api'

Examples

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"]);
});
1.7.0

10 months ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago