gamedig / node-gamedig

Query game servers and not only! Node.JS/Deno/Bun or Bash (via the CLI).
https://www.npmjs.com/package/gamedig
MIT License
607 stars 146 forks source link

SCP Secret Labratory - Add Support #197

Open lvmb3rt opened 4 years ago

lvmb3rt commented 4 years ago

I've been looking to be able to query SCP:SL servers for a long time using gamedig and found there is an available api to perform queries. This Steam post explains its use https://steamcommunity.com/app/700330/discussions/1/1752399065077956568/

This is the JSON api page https://api.scpslgame.com/

To get an API key it is said "Usually people only need to query data related to own server and if they do from the same IP then they don't need any API keys (and the API key for querying own server from the other IP addresses can be obtained using "!api" command in the server console)."

If you need a test server and API key please feel free to message me on any platform Steam - 68149532 (Friend code) Discord - LVMB3RT#8907

Thanks in advance.

podrivo commented 8 months ago

Duplicate https://github.com/gamedig/node-gamedig/issues/338

CosminPerRam commented 8 months ago

Duplicate https://github.com/gamedig/node-gamedig/issues/338

That PR is a duplicate of this one, as this one came first.

As I have mentioned in the second issue, a server responded to a minecraftvanilla query but doesnt seem to contain any useful data. I have emailed the devs regarding querying the game and they said that the query protocol is unstable and undocumented and they advise against using it. They mentioned the JSON api you provided, so I guess we'll go with that.