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
606 stars 147 forks source link

feat: Call of Duty Black Ops 3 #464

Closed dgibbs64 closed 9 months ago

dgibbs64 commented 9 months ago

What is this feature about? Add Call of Duty Black Ops 3.

Additional context/references It has the same query type as Modern Warfare 3

podrivo commented 9 months ago

Hey @dgibbs64.

Thank you! We'll make sure to add this as an option in the games list. In the mean time, you can currently use the Modern Warfare 3 query type to fetch server info:

gamedig --type codmw3 --pretty 108.61.158.93:27017

{
  "name": "Aperture BO3 Classic Svr",
  "map": "mp_stronghold",
  "password": false,
  "raw": {
    "protocol": 17,
    "folder": "usermaps",
    "game": "Black Ops 3",
    "appId": 311210,
    "numplayers": 0,
    "numbots": 0,
    "listentype": "d",
    "environment": "w",
    "secure": 1,
    "version": "1.0.0.0",
    "steamid": "90179601157573656",
    "tags": [
      "\\gametype\\tdm\\dedicated\\true\\ranked\\false\\hardcore\\false\\zombies\\false\\modName\\usermaps\\playerCount\\0"
    ]
  },
  "maxplayers": 18,
  "players": [],
  "bots": [],
  "connect": "108.61.158.93:27017",
  "ping": 0
}
CosminPerRam commented 9 months ago

Closed by #473.