View Single Post
Dr.Doctor
AlliedModders Donor
Join Date: Feb 2017
Location: Hong Kong
Old 03-07-2020 , 09:47   Re: Discord Game Server Monitor - Live server status on Discord v1.3.0
Reply With Quote #9

Quote:
Originally Posted by DARG367 View Post
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 is offline