You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
537 B

## Get the actual official Campaign
```js
const TMIO = require('trackmania.io'),
client = new TMIO.Client();
client.campaigns.currentSeason().then(async campaign=>{
console.log('The actual official campaign is', campaign.name);
console.log('The image URL of this campaign is:', campaign.image);
console.log('Top 10 of this campaign:');
const leaderboard = await campaign.leaderboard();
leaderboard.forEach(top=>{
console.log(top.position, top.playerName, "with", top.points, "points");
});
});
```