trackmania.totd module
- class trackmania.totd.TOTD(campaign_id: int, leaderboard_uid: int, month_day: int, week_day: int, mapobj: TMMap)[source]
Bases:
TOTDObjectNew in version 0.3.0.
Class that represents a TOTD
- Parameters
campaign_id (int) – The campaign’s id
leaderboard_uid (int) – The leaderboard’s uid
month_day (int) – The day of the month when the totd was played
week_day (int) – The day of the week when the totd was played
map (
TMMap) – The map that was played
- async classmethod get_totd(date: datetime, _TOTD__get_latest: bool = False) Self[source]
New in version 0.3.0.
Gets a map from the date provided.
- Parameters
date (datetime) – The date of the TOTD.
- Returns
The map
- Return type
- async classmethod latest_totd() Self[source]
New in version 0.3.3.
Gets the latest totd.
- Returns
The TOTD object.
- Return type
- property map
TMMap Property