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
596 stars 146 forks source link

feat: Add Alt: V support #587

Closed dgibbs64 closed 1 month ago

dgibbs64 commented 1 month ago

What is this feature about? Found a GTA V Mulitplayer mod called Alt:V https://altv.mp/ looks like it has a master server API that might be able to query to get server details https://docs.altv.mp/articles/master_list_api.htm

Thought you guys might like to add it

xCausxn commented 1 month ago

It does seem like another weird one, as the address field has an ip:port but could be different to the port field. Another thing is this could be a domain:port based field as well.

A similar approach to ragemp could be done, but it will have some assumptions made.

Another approach could be similar to how we use options.guildId for discord server queries?

Any thoughts @CosminPerRam