Discord Bot on Heroku Template
Before Start
This bot is going to run on Heroku. It can be run for free. You need to create your Heroku account at first.
After creating your account, you can get the API key. To automatically setup the bot on Heroku, you need to set it in GitHub Secrets.
Also, since this is a Discord bot, it requires a token for accessing Discord. You can get it from below.
How to Setup (for local debug)
-
Execute
python setup_secrets.pyand type your secrets (e.g. Discord token). -
Start the bot by executing
python main.py.
How to Setup (on Heroku)
- Add secrets below to GitHub Secrets.
DISCORD_TOKENHEROKU_API_KEYHEROKU_APP_NAMEHEROKU_EMAIL
- Just push to the repository or manually start GitHub Actions to deploy.