• If you need help or want to discuss things, you now can also join us on our Discord Server!
Game Server Query

Game Server Query 2.0

No permission to download
Required SinusBot Version
1.0
Compatible Backends
TeamSpeak 3
Game Server Query

This script can show server information of game servers in a specified channel.


Supported Protocols (And Tested Games)
  • Source Query (Full Support)
    • Garrys Mod
    • Counterstrike
    • Arma 2
    • Empyrion
    • Space Engineers
    • The Forest
    • Ark
    • 7 Days to Die
  • Gamespy v4 (Full Support)
    • Minecraft
  • Gamespy v3 (Partial Support - server should not be queried to frequently)
    • UT3
  • Gamespy (Full Support)
    • Battlefield 1942
  • Battlefield 2 (Full Support)
  • Battlefield 3 (Full Support)
    • Medal of Honor Warfighter (Uses same protocol)
  • Terraria (Full Support)
  • GTA FiveM (Full Support)

It allows the monitoring of multiple servers.
The script is tested with Garrys Mod, Empyrion and Arma2, but should work for anything else that supports the source server protocol.
Added Support for Minecraft - you need to enable query in the server properties.

Installation
  • Move the script file to the script folder
  • Edit the sinusbot config file to give this script "net" permissions
    • [Scripts.Privileges]
    • ServerQuery = ["net"]

Changes of Channel Name or Description depending on your settings

serverQuery.png



Supported Placeholders for channel name and description
  • %s - Status
  • %g - Game
  • %m - Map
  • %v - Version
  • %n - Name
  • %d - Description
  • %p - Current Players
  • %b - Current Bots
  • %pmax - Max Players



Keep in mind that not every server supports every placeholder as they vary between the games.

Also make sure the bot has sufficient permissions to edit the channels.

Contributions
  • ProfDrBielefeld (Formatting of BF3 Data)


Feedback or suggestions are welcome.
Author
Tuetchen
Downloads
802
Views
4,016
First release
Last update
Rating
3.78 star(s) 23 ratings

More resources from Tuetchen

Latest updates

  1. Update for 1.0

    This update is now compatible with SinusBot 1.x. Thanks to @Multivitamin!
  2. Game Server Query 1.4.5

    Added FiveM UDP Server Query Support
  3. Game Server Query 1.4.4

    The Update everyone waited for since years has come!!! - Added Terraria Yes Life is disappointing.

Latest reviews

Leider Funktioniert der Bot so nicht, weder für Ark noch für Minecraft und mein Javascript ist zu schlecht um das zu beheben.
Werd es wohl doch über meinen Querybot machen müssen.
Tuetchen
Tuetchen
Er funktioniert - Bedienfehler sind nicht Script Probleme.
Nachdem es die Minecraft Scripte nicht mehr gibt, fand ich nun das hier, leider Funktioniert es nur halb da es bei jeder Aktualisierung wechselt (Online > Offline > Online > Offline...) daher nicht wirklich zu gebrauchen in Bezug auf Minecraft.
Tuetchen
Tuetchen
Das Problem hier ist eher bei der Latenz / Reaktionsgeschwindigkeit deines Minecraftservers - zur Not im Script die Toleranz erhöhen wenn der Server nicht lokal läuft / zu lahm ist
I am using for a while now..

Never had problem with it, always working and it is really useful for gaming communities.

Great script :)
Not working
Tuetchen
Tuetchen
I guess the only thing not working is your ability to read
for anyone having this issue all you need to do is to right click on the serverquery.j and edit it. there you will have something like name: 'interval' and you will have to playe a comma after it like so: name: 'interval',
2019-04-25T14:55:10+02:00 no valid script found in ServerQuery.js
2019-04-25T14:55:10+02:00 error in script: Uncaught exception: SyntaxError: Unexpected identifier at ServerQuery.js:8:8 title: 'Update Interval in minutes', ^^^^^ Stack trace: SyntaxError: Unexpected identifier
Not working!

2019-04-25T14:55:10+02:00 no valid script found in ServerQuery.js
2019-04-25T14:55:10+02:00 error in script: Uncaught exception: SyntaxError: Unexpected identifier at ServerQuery.js:8:8 title: 'Update Interval in minutes', ^^^^^ Stack trace: SyntaxError: Unexpected identifier
Great script! However, it throws an error atm with the current alpha:

2019-04-12T00:26:59+02:00 no valid script found in Game_Server_Query.js
2019-04-12T00:26:59+02:00 error in script: Uncaught exception: SyntaxError: Unexpected identifier at Game_Server_Query.js:8:8 title: 'Update Interval in minutes', ^^^^^ Stack trace: SyntaxError: Unexpected identifier
Very nice script, but needs a update for the new sinusbot alpha script engine!

2019-01-23T00:46:47+01:00 no valid script found in ssc.js
2019-01-23T00:46:47+01:00 error in script: Uncaught exception: SyntaxError: Unexpected identifier at ssc.js:8:8 title: 'Update Interval in minutes', ^^^^^ Stack trace: SyntaxError: Unexpected identifier
Working 50% of time for Minecraft :/

Updating every minutes, 1/2 displaying server as offline...
Awesome script. :3
Top