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

Author's name coverImageText? #17

Closed rusocop closed 1 year ago

rusocop commented 1 year ago

Im little confused, what library are you using to get author's name to put it on the cover image text? I wanted to change it to game's name but can't find the source. Thanks

JustTemmie commented 1 year ago

"Art by x on SteamGrid DB" is just given directly by the steam grid DB API, line 163 and 190. if you have SGDB disabled, "gameName on steam" will be displayed instead, line 264

not entirely sure what part you're referring to, if it was the first one, change the two occurances coverImageText = f"Art by {entry[4]} on SteamGrid to coverImageText = gameName

rusocop commented 1 year ago

Sorry for not mentioning, the lines were 163 and 190 indeed. My idea was changing the "Art by {entry[4]} on SteamGrid" to "[gameName] - Steam" (or however it should be to display the game's name and a text like " - Steam" just because why not)

So now I understand that this: coverImageText = gameName " - Steam" should work

JustTemmie commented 1 year ago

well you'd need to have a + between the strings so, coverImageText = gameName + " - Steam" alternatively coverImageText = f"{gameName} - Steam" would also work

rusocop commented 1 year ago

Thanks!