From 515028049f8344469932ec5a76715d396a84d96a Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 17 Mar 2023 14:21:23 +0100 Subject: [PATCH] Update README to include a history example Signed-off-by: Niklas --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 59176ad..79ab6b5 100644 --- a/README.md +++ b/README.md @@ -15,16 +15,24 @@ MCCAPI.getParticipantsOnTeam("RED").then(response => { console.log(response.data); }); ``` -Output the current event: + +Print information about the current event cycle: ```javascript MCCAPI.getEventInformation().then(response => { console.log(`The current Event is MCC ${response.data.event}.`); }); ``` -Output the current holder of the ``Most eliminations`` in Rocket Spleef: +Print the current holder of the ``Most eliminations`` in Rocket Spleef (Rush): ```javascript MCCAPI.getHallOfFameStats().then(response => { console.log(response.data.MG_ROCKET_SPLEEF["Most eliminations"]); }); ``` + +Print information about the fourth game in MCC 3: +```javascript +MCCAPI.getRundownForEvent("3").then(response => { + console.log(response.data.history["3"]); +}); +```