Quote:
Originally Posted by Dr.Doctor
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.
|
As for the bot token, I'm grabbing it from the actual bot tab in the application as shown in the picture.
https://imgur.com/a/VRx7Kn5
And the dyno worker is on as I went to go configure it turned it on and saved changes. Shown below.
https://imgur.com/a/QKrs4dA
I also uploaded the servers.json file to the channel I want the bot to display the servers which is a test channel which the bot has access to. I also copied the link not the ID of the post. The .json file because it has nothing not already public I will show below.
https://cdn.discordapp.com/attachmen...1/servers.json
PHP Code:
[
{
"type": "SourceQuery",
"game": "Left 4 Dead 2",
"addr": "160.202.167.15",
"port": 27015,
"channel": 686050566815612998,
"image_url": "https://cdn.discordapp.com/attachments/656928917453668352/687400651084660751/BITFOR.jpg"
},
{
"type": "SourceQuery",
"game": "Left 4 Dead 2",
"addr": "189.1.173.122",
"port": 27035,
"channel": 686050566815612998,
"image_url": "https://cdn.discordapp.com/attachments/656928917453668352/686111709483892752/MICURA.jpg"
},
{
"type": "SourceQuery",
"game": "Left 4 Dead 2",
"addr": "177.54.157.71",
"port": 27045,
"channel": 686050566815612998,
"image_url": "https://cdn.discordapp.com/attachments/656928917453668352/686111709483892752/MICURA.jpg"
},
{
"type": "SourceQuery",
"game": "Left 4 Dead 2",
"addr": "103.195.102.218",
"port": 27035,
"channel": 686050566815612998,
"image_url": "https://cdn.discordapp.com/attachments/656928917453668352/686111709483892752/MICURA.jpg"
}
]
Still, the bot is offline. Even after restarting all dynos. I'm pretty sure I am following everything correctly. Although I can't seem to find the "SETTINGS_JSON_URL" config if there even is one?