![]() It can usually be assumed that the number of players online is equal to the length of the players array. query: Details about the query performed.raw: Contains all information received from the server.players: (array of objects) Each object may contain name, ping, score, team, address.Otherwise, the returned object is guaranteed to contain the following keys: If the error key exists, it should be assumed that the game server is offline or unreachable. If an error occurs, the returned object will contain an "error" key, indicating the issue. The callback function is "guaranteed" to be called exactly once. notes: (optional) Passed through to output.port: (optional) Uses the protocol default if not set.type: One of the game IDs listed in the game list below.Example usage npm install game-server-query var query = require('game-server-query') Used to receive information about a game such as players, map and server name. This list is from the latest version I have, the version of qstats on your system may have more or less than these:Ī2s Half-Life 2 new server (CS: Source, HL2:DM, HL2:CTF, TF2, newer HL1 & CS, other Source-based games.Game server querying tools for Node.JS. The server types are just like those found in the qstats program. The default if the message is not in ircbot.text is: %bold GameOffline - The message to display when there was an error querying the game server. GameOnline - The message to display when a game server was reached and queried successfully. This plugin uses 2 messages defined in ircbot.text !gsave - Save a server for use with !gstat !glist - Lists all of your defined servers (See External links)Ĭommands !gstat - Query a game server for it's stats. Versus reinventing the wheel and recoding a million stats grabbers (which would give you less options as only the most popular games would be coded for), I am/will use the program QStat to query servers. It would also let bot admins to show a player list in channel. The gaming plugin would/will allow bot administrators to keep a list of their game servers and allow users to query their stats (players/map name/etc.). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |