bug: steam://connect link not working #8

Closed
opened 2025-11-20 04:14:26 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @Dr3nz4r on GitHub (Feb 5, 2024).

Describe the bug
unlike the screenshots, the address is not a steam join link

Steps To Reproduce
Add a server with the json config from below

Expected behavior
the Address field should be a clickable steam:// join link

Screenshots or Data
image

Json config

{
  "name": "Server Name",
  "type": "cs2",
  "host": "Server Host",
  "port": 27015,
  "appId": 730,
  "graphHistoryHours": 12,
  "discord": [
    {
      "channelId": "1234",
      "showPlayersList": true,
      "showGraph": true,
      "onlineColor": "#00ff00",
      "offlineColor": "#000000"
    }
  ],
  "telegram": [ ],
  "requestRules": true,
  "requestRulesRequired": true,
  "requestPlayersRequired": true
}
Originally created by @Dr3nz4r on GitHub (Feb 5, 2024). **Describe the bug** unlike the screenshots, the address is not a steam join link **Steps To Reproduce** Add a server with the json config from below **Expected behavior** the Address field should be a clickable steam:// join link **Screenshots or Data** ![image](https://github.com/a-sync/game-server-watcher/assets/75803461/fb810cfe-cbab-4ce6-a88e-cdebccc1d7cc) Json config ```json { "name": "Server Name", "type": "cs2", "host": "Server Host", "port": 27015, "appId": 730, "graphHistoryHours": 12, "discord": [ { "channelId": "1234", "showPlayersList": true, "showGraph": true, "onlineColor": "#00ff00", "offlineColor": "#000000" } ], "telegram": [ ], "requestRules": true, "requestRulesRequired": true, "requestPlayersRequired": true } ```
Author
Owner

@a-sync commented on GitHub (Feb 5, 2024):

hey,
i removed the steam:// prefix from the address field because it's not correct/working for non steam games.

i have plans to allow customization of the embed fields via configuration, but for now, if you want this the quickest way would be to edit the discord-bot source and put it back in.

the embed is created here: 8197f27491/src/discord-bot.ts (L181)
and the line you want would look something like this:

fields.push({ name: 'Address', value: String('steam://connect/' + gs.info.connect)});

if you need this to run in ptero, for now i suggest you create a fork, make changes there, and then edit the ptero egg install script line that starts with git clone https: to point to your own fork instead of mine (a-sync/game-server-watcher). then install a new server with the new egg.

@a-sync commented on GitHub (Feb 5, 2024): hey, i removed the steam:// prefix from the address field because it's not correct/working for non steam games. i have plans to allow customization of the embed fields via configuration, but for now, if you want this the quickest way would be to edit the discord-bot source and put it back in. the embed is created here: https://github.com/a-sync/game-server-watcher/blob/8197f27491d3f4dfd82cdaf6efd666ade10bd5df/src/discord-bot.ts#L181 and the line you want would look something like this: ``` fields.push({ name: 'Address', value: String('steam://connect/' + gs.info.connect)}); ``` if you need this to run in ptero, for now i suggest you create a fork, make changes there, and then edit the ptero egg install script line that starts with `git clone https:` to point to your own fork instead of mine (a-sync/game-server-watcher). then install a new server with the new egg.
Author
Owner

@Dr3nz4r commented on GitHub (Feb 6, 2024):

That's exactly my use case, thanks a lot!

@Dr3nz4r commented on GitHub (Feb 6, 2024): That's exactly my use case, thanks a lot!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/game-server-watcher#8