AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Discord Game Server Monitor - Live server status on Discord v1.7.1 (https://forums.alliedmods.net/showthread.php?t=321899)

Dr.Doctor 03-05-2020 23:38

Discord Game Server Monitor - Live server status on Discord v1.7.1
 
Discord Game Server Monitor

Introduction

Recently, I created a Discord bot that sends out an embed that showing server's details like Status, Current Map and Players, etc. The bot will continue to update the data by editing the message. See:

https://github.com/DiscordGSM/Discor...ges/v1.6.0.png

It supports SourceQuery and UT3Query, most of the game servers using those query methods, including srcds. I had tested the DiscordGSM v1.3.0 on my discord server and my friends' servers too and it is stable, so I am here to introduce this application to you guys. :)

Installation
1. Invite DiscordGSM - https://github.com/DiscordGSM/Discor...ite-DiscordGSM --- Invite the bot now! https://discord.com/oauth2/authorize...4480&scope=bot

2. Deploy to Heroku - https://github.com/DiscordGSM/Discor...ploy-to-Heroku
If you don't want to host on your machine, Heroku is a good choice.

3. Self Hosting - https://github.com/DiscordGSM/Discor...3-Self-Hosting

Source Code

https://github.com/DiscordGSM/DiscordGSM/

Demos

https://doctorserver.tatlead.com/ass...age/dgsm-1.png

https://doctorserver.tatlead.com/ass...age/dgsm-2.png

https://doctorserver.tatlead.com/ass...age/dgsm-3.png

Enjoy :bacon!: :3

Maxximou5 03-06-2020 01:05

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
This is awesome! I especially appreciate the self hosting option you provided. :bacon!:

Sanjay Singh 03-06-2020 02:54

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
https://i.imgur.com/m4SdKkg.png

getting error

Please update doc with easy install from fresh like install required pakages.

Groven 03-06-2020 06:33

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
Thanks!

Dr.Doctor 03-06-2020 14:42

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
Quote:

Originally Posted by Sanjay Singh (Post 2685942)
https://i.imgur.com/m4SdKkg.png

getting error

Please update doc with easy install from fresh like install required pakages.

Also, you can do
Code:

pip install -r requirements.txt
to install the required packages.

Sanjay Singh 03-06-2020 20:44

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
Actually I am getting error with command pip.
I will try again

DARG367 03-06-2020 23:28

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
This might be a dumb question. But you create your own Discord bot right? Because I didn't see anywhere the ID of DiscordGSM. So I created my own Discord bot and input it's ID into the link to invite it to my server and it does not appear to be online.

I used the Deploy to Heroku on the wiki from the GitHub.

When I also run python3 getbotinvitelink.py

I get this
PHP Code:

Traceback (most recent call last):
  
File "getbotinvitelink.py"line 7in <module>
    
TOKEN os.environ["TOKEN"]
  
File "/app/.heroku/python/lib/python3.6/os.py"line 669in __getitem__
    raise KeyError
(keyfrom None
KeyError
'TOKEN' 

Any ideas? Is there anything else I can provide you to help?

MAMAC 03-07-2020 09:42

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
Quote:

Originally Posted by DARG367 (Post 2686051)
This might be a dumb question. But you create your own Discord bot right? Because I didn't see anywhere the ID of DiscordGSM. So I created my own Discord bot and input it's ID into the link to invite it to my server and it does not appear to be online.

I used the Deploy to Heroku on the wiki from the GitHub.

When I also run python3 getbotinvitelink.py

I get this
PHP Code:

Traceback (most recent call last):
  
File "getbotinvitelink.py"line 7in <module>
    
TOKEN os.environ["TOKEN"]
  
File "/app/.heroku/python/lib/python3.6/os.py"line 669in __getitem__
    raise KeyError
(keyfrom None
KeyError
'TOKEN' 

Any ideas? Is there anything else I can provide you to help?

Yes i have the same problem on heroku https://i.imgur.com/TGtAPU7.png

Dr.Doctor 03-07-2020 09:47

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
Quote:

Originally Posted by DARG367 (Post 2686051)
This might be a dumb question. But you create your own Discord bot right? Because I didn't see anywhere the ID of DiscordGSM. So I created my own Discord bot and input it's ID into the link to invite it to my server and it does not appear to be online.

I used the Deploy to Heroku on the wiki from the GitHub.

When I also run python3 getbotinvitelink.py

I get this
PHP Code:

Traceback (most recent call last):
  
File "getbotinvitelink.py"line 7in <module>
    
TOKEN os.environ["TOKEN"]
  
File "/app/.heroku/python/lib/python3.6/os.py"line 669in __getitem__
    raise KeyError
(keyfrom None
KeyError
'TOKEN' 

Any ideas? Is there anything else I can provide you to help?

You are right, you need to create your own discord bot on https://discordapp.com/developers/applications/ and create a bot token by yourself.

For the getbotinvitelink.py issue, I confirm that is a bug and I just fixed it sorry for that.
Alternatively, you can invite the bot directly by https://discordapp.com/api/oauth2/authorize?client_id=<bot-id>&permissions=268954704&scope=bot

For the bot online issue, you need to enable the worker on. See: https://github.com/DiscordGSM/Discor...ploy-to-Heroku - Step 3
If the bot is still not online, maybe you had entered the bot id instead of bot token.

Dr.Doctor 03-07-2020 09:56

Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
 
Quote:

Originally Posted by MAMAC (Post 2686097)
Yes i have the same problem on heroku https://i.imgur.com/TGtAPU7.png

@DARG367 and @MAMAC, please redeploy here thanks: https://heroku.com/deploy?template=h...SM/DiscordGSM/


All times are GMT -4. The time now is 08:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.