This rich presence will not work by itself.
Unfortunately, BTD6 does not have an easy way to find what map you are playing. This "Pseudo-Rich Presence" will allow you to pass arguments or use a gui for your current state and have that display on your profile.
First, clone the repository.
git clone https://www.github.com/yolodude25/btd6-rich-presence
Then, install the required modules
cd btd6-rich-presence
pip install -r requirements.txt
The config allows you to change what is displayed on your rich presence.
{map_image}
: Image key of map. (e.g. "monkey_meadow"){map_hf}
: Name of map. (e.g. "Monkey Meadow"){difficulty_hf}
: Name of difficulty (e.g. "Easy"){variation_image}
: Difficulty variation key of map. (e.g. "deflation"){variation_hf}
: Name of difficulty variation (e.g. "Deflation")
The client id of the Discord Application. Don't modify this unless you are using custom assets and know what you are doing.
Make a copy of config.ini.example
and remove the .example
, then edit it if you want.
Run presence.py
with your arguments.
To exit the program just close the python script.
Map you are playing.
List of all maps can be found in assets.json
This argument uses fuzzy search, and you can type approximate map names and if they are close enough, it will recognize them.
Difficulty you are playing at.
easy
, medium
, hard
Cannot be used without --map
being set.
Difficulty variation.
List of all variations can be found in assets.json
.
The variation must be available for the selected difficulty.
Cannot be used without --difficulty
being set.
This argument uses fuzzy search, and you can type approximate variation names and if they are close enough, it will recognize them.
Number of players in your Co-Op game.
1
, 2
, 3
, 4
Cannot be used without --map
being set.
Make a copy of config.ini.example
and remove the .example
, then edit it if you want.
Run `presence_gui.pyw.
Set the map and difficulty image, then click Update
to display it.
To exit the program just close the window.
python presence.py -m "Monkey Meadow" -d Medium -v Apopalypse
python presence.py -m Cubism -d Hard -c 3
python presence.py -m #Ouch
python presence.py