Skip to content

Commit

Permalink
Update README to include a history example
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas <derNiklaas@users.noreply.github.com>
  • Loading branch information
derNiklaas committed Mar 17, 2023
1 parent b3df8fb commit 5150280
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
});
```

0 comments on commit 5150280

Please sign in to comment.