This repo is for deploying the Carim Discord Bot using Heroku
Video guide: https://youtu.be/LiklhYLcYy8
- Set up a free Heroku account
- Follow Heroku set up instructions
- Clone this repository
git clone https://github.com/schana/carim-discord-bot-heroku.git
cd carim-discord-bot-heroku
- Configure the bot
- Commit your changes
git add -A
git commit -m "Added my configuration"
- Create the Heroku app
heroku create
git push heroku master
heroku ps:scale worker=1
- You can check the logs to make sure everything is running properly
heroku logs
- Make your changes
- Commit your changes
git add -A
git commit -m "Updated my configuration"
- Update Heroku app
git push heroku master
You only need to do this when the bot version needs updated. By default, the lastest version will be used when initially set up.
- Edit
requirements.txt
- Replace
carim-discord-bot
withcarim-discord-bot=={version}
, where{version}
is the version you want. Find the latest version on PyPI.carim-discord-bot==2.2.1
- Commit your changes
git add -A
git commit -m "Updated bot version"
- Update Heroku app
git push heroku master
For additional help, visit the Carim Discord at https://discord.gg/kdPnVu4
-
Create bot account
- Follow the guide at https://discordpy.readthedocs.io/en/v1.3.3/discord.html
- Save the token for later
- In step 6 under "Creating a Bot Account", make sure "Public Bot" is unticked
- Under "Inviting Your Bot", step 6 has you setup the permissions for the bot
- Currently, the bot needs "Manage Channels", "View Channels", "Send Messages", and "Embed Links"
-
Update configuration
-
Edit config.json with your values following the descriptions here
-
To get Discord Channel IDs, you need to enable developer mode in the app:
- Settings -> Appearance -> Advanced -> Developer Mode
-
Then, you will be able to right click on a Channel and select "Copy ID"
-
- Make your cftools account a developer
- Create a cftools application
- Open the application dashboard and copy the grant url
- Open the grant url and allow your application to access your service
- Fill in the values in the bot's config for cftools_application_id, cftools_client_id, cftools_secret, and cftools_service_id
- Use the commands
--leaderboard <stat type>
and--stats <steam64id>
in the user command channel for querying