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.

16 lines
399 B

## Gets the TOTD when it cames out every day
```js
const TMIO = require('trackmania.io'),
client = new TMIO.Client();
client.on('totd', async totd=>{
const map = await totd.map();
// Map names aren't formatted by default (color codes for example), so we need to format them
const mapName = client.stripFormat(map.name);
console.log('New Track Of The Day:', mapName);
});
```