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

Custom Game IDs do not appear to be working as intended #60

Open freakalope opened 3 weeks ago

freakalope commented 3 weeks ago

When setting up Custom Game IDs with Discord Developer Portal, the IDs don't appear to be read correctly from the customGameIDs.json file. I've provided how I've formatted my file below.

{ "Team Fortress 2 Classic": 1253954090245947415, "Open Fortress": 1253959551682875465 }

This just has to be in the folder when running installer.sh, correct? I ran the installer again to be sure, but this is part of the error that comes up when the game is open:

[Jun 21 2024 - 23:55:44] found game Team Fortress 2 Classic played by Freakalope [Jun 21 2024 - 23:55:45] could not find the steam app ID for Team Fortress 2 Classic [Jun 21 2024 - 23:55:45] game changed, updating to 'Team Fortress 2 Classic' [Jun 21 2024 - 23:55:45] fetching the Discord game ID for Team Fortress 2 Classic [Jun 21 2024 - 23:55:45] could not find the discord game ID for Team Fortress 2 Classic, defaulting to well, the default game ID

I can confirm that if I set the default Discord Application ID in the config.json to "1253954090245947415", then steam-presence displays it correctly but duplicated, as it is just replacing "a game on steam" with "Team Fortress 2 Classic". This leads me to believe that my application ID is being read correctly in the config.json, but not customGameIDs.json.

If this is not functioning as intended or I am doing something wrong, please let me know.