Skip to content

Added Discord Rich presence#64

Merged
RadAlpaca11 merged 11 commits into
mainfrom
drpc
May 24, 2026
Merged

Added Discord Rich presence#64
RadAlpaca11 merged 11 commits into
mainfrom
drpc

Conversation

@matejstastny
Copy link
Copy Markdown
Collaborator

@matejstastny matejstastny commented May 21, 2026

THT-410

This pull request adds Discord Rich Presence (DRPC) integration to the TrickFire Simulation project, allowing the simulation's status to be displayed on Discord.

  • Added a new module cli/drpc.py that implements DRPC support using the pypresence library, including logic to find the correct Discord IPC socket both natively and inside containers, and to update presence information in a background thread.
  • Updated cli/cli.py to start the DRPC integration in a separate thread when running simulations, both in Docker and natively
  • Added pypresence as a dependency in both the Docker image (docker/Dockerfile) and the Python environment (pixi.toml)

Copy link
Copy Markdown
Collaborator

@RadAlpaca11 RadAlpaca11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is genuinely one of my favorite things we've done and it looks good to me!

@RadAlpaca11 RadAlpaca11 merged commit 89d2a44 into main May 24, 2026
2 checks passed
@RadAlpaca11 RadAlpaca11 deleted the drpc branch May 24, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants