Skip to content

kmnunley/Trackmania-TOTD-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trackmania TOTD Discord Bot

Setup

Configuration

Using .env.template, create a file called .env and fill in your credentials. This is required for the bot to run.

Dependencies

This repo uses pipenv for its dependency management. See the docs here.

Initially, run pipenv install to install the dependencies.

Then, you can either use pipenv run python [file] or pipenv shell to create a subshell in which you can run your python commands.

To add new dependencies, simply run pipenv install [dependency]. Add a --dev flag if it's a development dependency.

Ideas for Improvements

  • Show the map's thumbnail. The URL is contained in the map information.
  • Get the TMX information if available: We can use the TMX API to get map information by its in-game mapUid.
    • Get the TMX thumbnail. Typically, maps on TMX have a stylized thumbnail that's better than the in-game one.
    • Get the map's assigned difficulty. Looks like that's an empty string in the TMX API although it's definitely being used on TMX itself.
    • Get the map's assigned tags. Also seems to be an empty string. There is a StyleName property that seems to contain the first tag.
  • Show the author's name. TMX has the TMX username, but that might be different from the in-game one. We might be able to get the in-game one using the v3/profiles route.

An example of a map's TMX data: Edinburgh (Uid: "ia2DTzgOoCl6hPiThc657ssJPV").

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages