node-mcc-api
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

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

/node-mcc-api/

    Package Sidebar

    Install

    npm i node-mcc-api

    Weekly Downloads

    1

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    12 kB

    Total Files

    5

    Last publish

    Collaborators

    • derniklaas