Skip to content

vidhanio/btd6-rich-presence

Repository files navigation

Bloons TD 6 Pseudo-Rich Presence

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.

Main Screenshot

Installation

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

Config

The config allows you to change what is displayed on your rich presence.

Available Values

  • {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")

Rich Presence

client-id

The client id of the Discord Application. Don't modify this unless you are using custom assets and know what you are doing.

CLI

Usage

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.

Arguments

-m, --map

Map you are playing.

Available Values

List of all maps can be found in assets.json

Notes

This argument uses fuzzy search, and you can type approximate map names and if they are close enough, it will recognize them.

-d, --difficulty

Difficulty you are playing at.

Available Values

easy, medium, hard

Notes

Cannot be used without --map being set.

-v, --variation

Difficulty variation.

Available Values

List of all variations can be found in assets.json.

The variation must be available for the selected difficulty.

Notes

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.

-c, --coop

Number of players in your Co-Op game.

Available Values

1, 2, 3, 4

Notes

Cannot be used without --map being set.

GUI

Usage

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.

Examples

Monkey Meadow (Medium - Apopalypse)

CLI

python presence.py -m "Monkey Meadow" -d Medium -v Apopalypse

Rich Presence

Monkey Meadow (Medium - Apopalypse)

Cubism (Hard - Standard) (Co-Op)

CLI

python presence.py -m Cubism -d Hard -c 3

Rich Presence

Cubism (Hard - Standard) (Co-Op)

#Ouch

CLI

python presence.py -m #Ouch

Rich Presence

#Ouch

In Menu

CLI

python presence.py

Rich Presence

In Menu