Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] DiscordGSM

Featured Replies

 Monitor your game servers on Discord and tracks the live data of your game servers.

 


You need an API Key for your settings.json Config.

 

Spoiler

Obtaining an API Key:

 

Visit the official Discord Developers page here: https://discord.com/developers/applications/
-Click "New App".
-Name your app and click create! Note: A description isn't required.
-You will now be redirected to your created app, at the point you will need to click "Create a Bot User".
-Under the newly created bot section, under "Username" you will see "Token". Reveal the token and copy it into your servers config.
-Now it's time to add your new bot to your guild! To add your bot to your guild you must visit the following link, and replace "botUserID" with the client ID found at the top of your Discord app settings page:https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8

Note: "permissions=8" in the link will provide the bot with administrative permissions so you won't have to give it some.

Note: DO NOT SHARE YOUR API KEY! Sharing your key may result in punishments from Discord (including a platform-wide ban) if the token is used to abuse the API.

 

For commands and How-To's just look at the Guides on the official Page

https://discordgsm.com/guide

 

 

 

 

 

This is in case you still want to use DiscordGSM v.1.9.3. Now named "Discord-GameServerMonitor-Classic"

This does not apply for the newest version of DGSM

 

Quote

 

Configure your Monitored Servers in the servers.json:

https://github.com/DiscordGSM/DiscordGSM/wiki/servers.json

Example Servers.json

 

[
    {
        "comment": "7 Days to Die | In the Server channel",
        "type": "GamedigQuery",
        "game": "7d2d",
        "address": "7d2d.domain.ca",
        "port": 25000,
        "channel": 745044509741321321,
        "image_url": "https://github.com/patrix87/DiscordLogGSM/blob/master/images/7dtd.png?raw=true",
        "custom": "Visit <#875131864359321321> via <#46560149126321321>.",
        "steam_id": 251570,
        "direct_join": true,
        "country": "CA",
        "color": "#bf0b01",
        "title": "7 Days to Die",
        "public_address": "7d2d.domain.ca:25000",
        "locked": true,
        "maxplayers": 32,
        "hostname": "My 7 Days To Die Server"
    },
    {
        "comment": "7 Days to Die | In the 7 Days to die channel",
        "type": "GamedigQuery",
        "game": "7d2d",
        "address": "7d2d.domain.ca",
        "port": 25000,
        "channel": 745044509951123123,
        "image_url": "https://github.com/patrix87/DiscordLogGSM/blob/master/images/7dtd.png?raw=true",
        "custom": "**PVE SERVER** Join vocal when playing",
        "steam_id": 251570,
        "direct_join": true,
        "country": "CA",
        "color": "#bf0b01",
        "title": "7 Days to Die",
        "public_address": "7d2d.domain.ca:25000",
        "locked": true,
        "password": "serverpassword",
        "maxplayers": 32,
        "hostname": "My 7 Days To Die Server"
    },
    {
        "comment": "ARK | Ark Channel",
        "type": "GamedigQuery",
        "game": "arkse",
        "address": "ark.domain.ca",
        "port": 27016,
        "channel": 745044509741547522,
        "image_url": "https://github.com/patrix87/DiscordLogGSM/blob/master/images/ark.png?raw=true",
        "custom": "Visit <#343135886478123123> via <#465601491261654654>.",
        "steam_id": 346110,
        "direct_join": false,
        "country": false,
        "color": "#b6ccda",
        "title": "ARK : Survival Evolved",
        "public_address": "ark.domain.ca",
        "locked": false,
        "map": false,
        "hostname": "My ARK Server"
    }
]

Update 1.9.2

You have to Manually reconfigure your Servers.json and Settings.json (Renamed to ".env" it’s a hidden file. Make sure u display hidden files.)

just rename your current config files and start the container so it generates new configs 

 

 

Edited by Cornflake

  • 2 weeks later...
  • Replies 50
  • Views 13.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Hey, No its Under "bot" You Create the "app" like you did, and then under "bot" -> "Add Bot" to create the actual Bot. And there you will find the Token

  • Natcoso9955
    Natcoso9955

    So it turns out my issues was i had looked at this before it was on community apps, I had my old config file still there and didnt realise some stuff had changed.

  • I get the hang on it, you are absolutly right, thank you for confirming my thoughts. i had to many not working rows for Valheim, now it works just fine. A fun and nice Docker, we dont need to Pin any

Posted Images

I'm a bit lost here mate as the "Username" and "Token" isn't there. Do these translate to "Client ID" and "Client Secret" under the OAuth2 page?

Screenshot 2021-09-03 164940.jpg

  • Author
On 9/3/2021 at 6:37 PM, Mr_Jay84 said:

I'm a bit lost here mate as the "Username" and "Token" isn't there. Do these translate to "Client ID" and "Client Secret" under the OAuth2 page?

Screenshot 2021-09-03 164940.jpg

 

Hey, No its Under "bot"

You Create the "app" like you did, and then under "bot" -> "Add Bot" to create the actual Bot. And there you will find the Tokentoken.thumb.JPG.ccd236850278697a30acb2d2df6aed6e.JPG

Edited by Cornflake

Of course! Thanks mate!

  • 3 months later...

Hey, gettin this error can you help? 

 

Quote

 usermod: no changes
usermod: no changes
Server Config found!
Settings Config found!
Traceback (most recent call last):
File "/dgsm-docker/bot.py", line 442, in <module>
discordgsm = DiscordGSM(client)
File "/dgsm-docker/bot.py", line 64, in __init__
self.servers = Servers()
File "/dgsm-docker/servers.py", line 14, in __init__
self.refresh()
File "/dgsm-docker/servers.py", line 18, in refresh
servers = self.get()
File "/dgsm-docker/servers.py", line 49, in get
return json.loads(data)
File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 8 column 20 (char 192)

 

 

Thanks

  • Author

looks like theres an issue with your config, can you send me your config so i can take a look at it

 

greets

  • 4 weeks later...
  • Author
8 minutes ago, Natcoso9955 said:

Hi, im having an issue with this retrieving my project zomboid server, i believe its due to the game running on a udp port not a tcp port. This is the only thing i can think would be the cause.

Are you able to advise how i set the server config to connect via udp not tcp.

 

Thanks.

 

hey, you could try this, it should work:

 

    {
        "comment": "project zomboid",
        "type": "gamedigquery",
        "game": "przomboid",
        "address": "YOUR GAME SERVER IP HERE",
        "port": YOUR PORT HERE,      (should be 16261 if i am not wrong)
        "channel":  YOUR CHANNEL ID HERE,
        "locked": false
        }

 

query info's are always using udp for what i am knowing. you need to make sure youre port is forwarded if you hosting it locally

Edited by Cornflake

  • 3 weeks later...
On 2/13/2022 at 12:56 PM, Cornflake said:

 

hey, you could try this, it should work:

 

    {
        "comment": "project zomboid",
        "type": "gamedigquery",
        "game": "przomboid",
        "address": "YOUR GAME SERVER IP HERE",
        "port": YOUR PORT HERE,      (should be 16261 if i am not wrong)
        "channel":  YOUR CHANNEL ID HERE,
        "locked": false
        }

 

query info's are always using udp for what i am knowing. you need to make sure youre port is forwarded if you hosting it locally

So it turns out my issues was i had looked at this before it was on community apps, I had my old config file still there and didnt realise some stuff had changed.

  • 2 weeks later...

Hi, 

 

I am trying to install this but am having some issues getting it to work. I have never added a bot before so this could just be me not knowing how this all works. 

I have tried following these steps at the top of this page: 

On 8/20/2021 at 4:06 PM, Cornflake said:

Obtaining an API Key:

 

Visit the official Discord Developers page here: https://discord.com/developers/applications/
-Click "New App".
-Name your app and click create! Note: A description isn't required.
-You will now be redirected to your created app, at the point you will need to click "Create a Bot User".
-Under the newly created bot section, under "Username" you will see "Token". Reveal the token and copy it into your servers config.
-Now it's time to add your new bot to your guild! To add your bot to your guild you must visit the following link, and replace "botUserID" with the client ID found at the top of your Discord app settings page:https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8

Note: "permissions=8" in the link will provide the bot with administrative permissions so you won't have to give it some.

I have created a new app and bot. The bot ID is copied in the env file on line 1:
image.thumb.png.78b92339ef6806d5a831ac38d031110f.png

 

I then went to this link https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8 and replaced the botID but got this error message:
image.thumb.png.4b40e7387a712839b475cfa342ced813.png

 

I also don't understand what I need to fill in at line 3 called "DGSM_ROLEID=123". 

  • Author
13 minutes ago, workermaster said:

Hi, 

 

I am trying to install this but am having some issues getting it to work. I have never added a bot before so this could just be me not knowing how this all works. 

I have tried following these steps at the top of this page: 

I have created a new app and bot. The bot ID is copied in the env file on line 1:
image.thumb.png.78b92339ef6806d5a831ac38d031110f.png

 

I then went to this link https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8 and replaced the botID but got this error message:
image.thumb.png.4b40e7387a712839b475cfa342ced813.png

 

I also don't understand what I need to fill in at line 3 called "DGSM_ROLEID=123". 

 

Looks good for me. you can leave the role id as it is, 

 

 

i think you missed the part where it says:

 

"Now it's time to add your new bot to your guild! To add your bot to your guild you must visit the following link, and replace "botUserID" with the client ID found at the top of your Discord app settings page:https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8"

 

 

 

it looks like you just went to the link as it shows. but you need to replace "botUserID" to your actual Bot ID shown on the discord website.

https://discordapp.com/oauth2/authorize?client_id=  "botUserID"  &scope=bot&permissions=8"

 

 

Try this and let me know :)

 

edit:

The BotId is called Application ID now i think.

 

 

Edited by Cornflake

5 minutes ago, Cornflake said:

 

Looks good for me you can leave the role id as it is, 

 

 

i think you missed the part where it says:

 

"Now it's time to add your new bot to your guild! To add your bot to your guild you must visit the following link, and replace "botUserID" with the client ID found at the top of your Discord app settings page:https://discordapp.com/oauth2/authorize?client_id=botUserID&scope=bot&permissions=8"

 

 

 

it looks like you just went to the link as it shows. but you need to replace "botUserID" to your actual Bot ID shown on the discord website.

https://discordapp.com/oauth2/authorize?client_id=  "botUserID"  &scope=bot&permissions=8"

Try this and let me know :)

 

 

Thanks for the quick reply. 

Unfortunately, I still manage to mess it up (I got a talent for that)

 

At first I thought that it needed the Bot number (7190) shown here:
image.png.8cfb5be2a4a6a2e98f925b946ad7aa79.png

 

I then tried the top of the settings page you mentioned. I think that you mean this page:
image.thumb.png.43f14f337fe9f4732ba9fa379c4ce706.png

 

I entered my own 4 digit ID number but that resulted in the same "Unknown application error"

Could it be that I just have the wrong number and am looking at the wrong place?

21 hours ago, Cornflake said:

Unfortunately, you were looking at the wrong place.

 

you will find the application id of your bot at https://discord.com/developers/applications/

Thanks! That got it working a bit better now. 

 

I have manged to add the bot to Discord but get an error in the container console and do not know how to use the bot in Discord. For now I have only filled out the mandatory fields in the servers.json:

image.thumb.png.164fe9763c890f1a7313aa2385222856.png

  • Author
4 hours ago, workermaster said:

Thanks! That got it working a bit better now. 

 

I have manged to add the bot to Discord but get an error in the container console and do not know how to use the bot in Discord. For now I have only filled out the mandatory fields in the servers.json:

image.thumb.png.164fe9763c890f1a7313aa2385222856.png

 

could you please paste your servers.json here? you can blank the channel and adress. but its quite easy to get a json format error if theres a Space or comma missing

18 hours ago, Cornflake said:

 

could you please paste your servers.json here? you can blank the channel and adress. but its quite easy to get a json format error if theres a Space or comma missing

Here are the files. I have removed the middle part of the sensitive data. 

servers.json.env

 

We managed to figure out how to access the bot. Turned out we needed to say "!servers". The problem with that is that only I can get the bot to give us an aswer and others keep getting the message that they do not have permission to do that. 

  • Author
31 minutes ago, workermaster said:

Here are the files. I have removed the middle part of the sensitive data. 

servers.json 1.51 kB · 1 download .env 651 B · 1 download

 

We managed to figure out how to access the bot. Turned out we needed to say "!servers". The problem with that is that only I can get the bot to give us an aswer and others keep getting the message that they do not have permission to do that. 

 

Could you please try this Json?

dont forget to re-add your IP and channel ID

servers.json

1 hour ago, Cornflake said:

 

Could you please try this Json?

dont forget to re-add your IP and channel ID

servers.json 191 B · 0 downloads

I tried your file but still get an error

image.thumb.png.62cd9717d7eff8cda6480a10b8b60eb1.png

 

I can ask the bot to show me the servers but it doesn't look like the image shown in the community applications downlaod page;

image.thumb.png.21aa80c3335ff6fc5fe7bb452d99bf13.png

  • Author

sorry my bad, the Port and channel should not be in quotes. please try this again 

 

you dont have to write anything to the bot, he will post the message (in the channel you setup) on startup and he will update it every minute (you can change how often)

 

servers.json

Edited by Cornflake

22 minutes ago, Cornflake said:

sorry my bad, the Port and channel should not be in quotes. please try this again 

 

you dont have to write anything to the bot, he will post the message (in the channel you setup) on startup and he will update it every minute (you can change how often)

 

servers.json 189 B · 1 download

Hi there.

I have been following along with all the updated json configs as im having all the same issues.

So far this is all im able to get: 
image.png.de2d8c5b81a0b3288aeee1d1e3e874cb.png

 

With the log looking similar to others 
image.png.dadc09a0d34ea90942265bd0867b391a.png

 

This is using your most recently posted json config.
Any chance you have a discord we could hop into?

1 hour ago, Cornflake said:

sorry my bad, the Port and channel should not be in quotes. please try this again 

 

you dont have to write anything to the bot, he will post the message (in the channel you setup) on startup and he will update it every minute (you can change how often)

 

servers.json 189 B · 1 download

I have changed the servers.json but still get the error;

image.png.7efacd66cb6efd020e73791961bd3a3e.png

 

This is how the servers.json looks now;

image.png.f783f0a71dfdff7be391c73625d94b51.png

 

 

EDIT: After changing the quotes, I now got the first message from the bot in the channel. 

 

How do I add more servers? Just add them to the servers.json file or do I need to add more servers.json files?

Edited by workermaster

48 minutes ago, Nubby said:

Hi there.

I have been following along with all the updated json configs as im having all the same issues.

So far this is all im able to get: 
image.png.de2d8c5b81a0b3288aeee1d1e3e874cb.png

 

With the log looking similar to others 
image.png.dadc09a0d34ea90942265bd0867b391a.png

 

This is using your most recently posted json config.
Any chance you have a discord we could hop into?

I managed to get a little bit more information (name and IP) but the bot only posts one status update. It does not send a new one. Did you get that to work?

 

35 minutes ago, workermaster said:

I managed to get a little bit more information (name and IP) but the bot only posts one status update. It does not send a new one. Did you get that to work?

 

Yea. I was able to get more output with other json configs. I was never able to get a server online status or player count. Im not sure if i misunderstand your first part but the bot posts the initial message then updates it as it polls for new informaiton.

  • Author
9 hours ago, Nubby said:

Hi there.

I have been following along with all the updated json configs as im having all the same issues.

So far this is all im able to get: 
image.png.de2d8c5b81a0b3288aeee1d1e3e874cb.png

 

With the log looking similar to others 
image.png.dadc09a0d34ea90942265bd0867b391a.png

 

This is using your most recently posted json config.
Any chance you have a discord we could hop into?

looks fine for me, your bot is working. but looks like it cannot reach your server. do you host locally? did you forward the port?.

i did see that valheim uses port 2457 for query requests. so this port must be forwarded too. and you have to put this port into your servers.json

and based on the documentation on gamediqquery your valheim server must be in Public mode

Quote

Valheim

Valheim servers will only respond to queries if they are started in public mode (-public 1).

 

On 3/13/2022 at 5:53 AM, Cornflake said:

looks fine for me, your bot is working. but looks like it cannot reach your server. do you host locally? did you forward the port?.

i did see that valheim uses port 2457 for query requests. so this port must be forwarded too. and you have to put this port into your servers.json

and based on the documentation on gamediqquery your valheim server must be in Public mode

 

I have taken a short break from finishing the bot but am back now. 

 

I get the same problem as @Nubby

 

image.png.5660c44c5b4cc1c60de3085b246d0d75.png

 

Friends are able to reach the Terraria server and can game on it. The port is forwarded so it should be reachable. 

Here is the servers.json;

image.thumb.png.13fbe1021b5b58fb1337039c39a1c99a.png

 

I have no idea why it doesn't work. 

I also wonder how I would add a gameserver to this file that is not on gamediqquery? I have multiple Wreckfest servers but Wreckfest (and Satisfactory and Open RCT2) are not on Gamediqquery. 

  • Author
28 minutes ago, workermaster said:

I have taken a short break from finishing the bot but am back now. 

 

I get the same problem as @Nubby

 

image.png.5660c44c5b4cc1c60de3085b246d0d75.png

 

Friends are able to reach the Terraria server and can game on it. The port is forwarded so it should be reachable. 

Here is the servers.json;

image.thumb.png.13fbe1021b5b58fb1337039c39a1c99a.png

 

I have no idea why it doesn't work. 

I also wonder how I would add a gameserver to this file that is not on gamediqquery? I have multiple Wreckfest servers but Wreckfest (and Satisfactory and Open RCT2) are not on Gamediqquery. 


Hey,

So your valheim server seems to works now. That’s good to know, what was your issue now?

 

If gamedigquery doesn’t list your game it will basically not work you have to use one of the other Query types: sourcequery , ut3query or fake

https://github.com/DiscordGSM/DiscordGSM/wiki/SourceQuery

https://github.com/DiscordGSM/DiscordGSM/wiki/UT3Query
 

i don’t know what query type Terria is using, but you could try if one of it works 

 

basically you don’t need gamedigquery at all, as an example I used sourcequery for all my GameServers a while ago and it worked the same. 
 

you just need to look what query port you game uses and what Protocol. And don’t forget to forward the UDP port. 

Edited by Cornflake

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.