Variable Name | Description | Notes |
---|---|---|
botToken | Bot Token - - check number #8 | Required |
channelIdShard | Discord id of the channel where you want to have the bot showing the PO for your members - check number #10 | Required |
channelIdPest | Discord id of the channel where you want to have the bot showing the PO for your pest/enemies - check number #10 | Required |
thumbnail | Here you can put an image/avatar of the bot. If you don't want to have an avatar just put ' ' | Required |
url | the url of the heroku page. you can get it by pressing on the open app on top right of this page | Required |
timePeriod | how often the bot should refresh the PO - check number #13 | Required |
1. Create your own github account (in case you don't have one) and fork this project to your github repository
Visit discord developer url . Here you will create your own shard bot.
After you login with your discord username and password, you can create a new application.
Here you will need to copy and save the bot token
that you need to add it on heroku in Config Vars
You can do that by selecting OAuth2 from the menu and select the bot
from Scopes selections + you need to give him administrative rights or send message
Copy the url and paste it in a new tab where you’ll be prompted to choose which server the bot should join.
(!!! You need to be and admin of that server to be able to invite it on that server !!!
)
You'll find Developer Mode in User Settings > Appearance.
This step you need it for Config Vars
in heroku
Now after you have the bot all setup we can go back to heroku and start adding the Config Vars
On this step you need to add the following parameters that are different for everyone:
Variable Name | Description |
---|---|
botToken | The Bot Token you got it on #8 |
channelIdShard | Discord id of the channel where you want to have the bot showing the PO for your members - check number #11 |
channelIdPest | Discord id of the channel where you want to have the bot showing the PO for your pest/enemies - check number #11 |
thumbnail | Here you can put an image/avatar of the bot. The best easy way is to upload an png on imgur website. If you don't want to have an avatar just put ' ' |
url | the url of the heroku page. you can get it by pressing on the open app on top right of this page |
timePeriod | how often the bot should refresh the PO - check number #13 |
Here are some numbers that represent the period of how often the bot should refresh the PO
- 3600000 = every 1 hour
- 1800000 = every 30 min
- 600000 = every 10 min
- 300000 = every 5 min
- 60000 = every 1 min
Modify the po-shard-data.json
file and add the following data:
Variable Name | Description |
---|---|
"Name" | The Username |
"Flag" | emoji or flag icon |
"SWGOH" | the link to swgoh.gg |
"UTC" | UTC time of his PO - this can be found on swgoh.gg |
{
"Name": "Username",
"Flag": ":flag_us:",
"SWGOH": "<https://swgoh.gg/p/122235729/>",
"UTC": "04:00"
}
Modify the po-pest-data.json
file and add the following data:
Variable Name | Description |
---|---|
"Name" | The Enemy Username |
"Flag" | emoji or flag icon |
"SWGOH" | the link to swgoh.gg |
"UTC" | UTC time of his PO - this can be found on swgoh.gg |
{
"Name": "Enemy",
"Flag": ":poop:",
"SWGOH": "<https://swgoh.gg/p/123456789/>",
"UTC": "15:00"
}