JustTemmie / steam-presence

A script that takes the game you're playing on steam and displays it on discord
MIT License
220 stars 15 forks source link

changing rich presence title? #36

Closed shadowshard4080 closed 8 months ago

shadowshard4080 commented 8 months ago

Is there any way we can change "a game on steam" to "on Steam Deck" so that it says

Playing on Steam Deck
Control Ultimate Edition
The Foundation
04:26 elapsed

instead of "Playing a game on steam, etc" If that's possible I think it would look a lot better. I know this rich presence isn't intended solely for the Steam Deck but that's what I and many others are using it for, so the ability to customize the RPC title would be great

JustTemmie commented 8 months ago

this is actually a feature, the instructions can be found here, it's not trivial, but fairly easy to do

if you need any additional help feel free to ask

shadowshard4080 commented 7 months ago

this is actually a feature, the instructions can be found here, it's not trivial, but fairly easy to do

if you need any additional help feel free to ask

I do have another question. How do I change the pop-up text for the rich presence icon from " on steam" to "Playing on Steam Deck"? I tried to change that in the main.py code, but it didn't seem to work. 🤔

JustTemmie commented 7 months ago

line 331, inside getImageFromStorepage()

respone = r.json()

coverImage = respone[str(gameSteamID)]["data"]["header_image"]
# change this, set it to whatever you'd like, such as "Playing on Steam Deck" or f"Playing {gameName} on Steam Deck"
coverImageText = f"{gameName} on steam"

log(f"successfully found steam's icon for {gameName}")
shadowshard4080 commented 7 months ago

Hmm, it didn't work before when I did just that. However, when I ran the install script again, then it worked. Thank you.

JustTemmie commented 7 months ago

alright cool lmao, no idea what happened