This bot was created for the ChessDojo discord community based on a guide to hosting python bots on Heroku. (see the forked repository)
You must have an account for:
- Create an application in the developer portal by clicking here
- Open up your new application and click 'Add Bot' under the Bot settings to create your bot.
- After creating the bot, click the 'Copy' button under the title Token. Take note of your token as you will need it later.
- Fork a copy of this repository by clicking the 'Fork' on the upper right-hand.
- Create an application for Heroku by clicking here.
- Under 'Deploy', do the following:
- Deployment Method => Connect your GitHub (note: heroku does not support GitHub as of 4/25 due to a security breach)
- App connected to GitHub => Search for the forked repository
- Automatic Deploy => Enable Automatic Deploy (to redeploy after every commit)
- Under 'Settings', click on 'Reveal Config Vars' and enter the following:
- KEY => DISCORD_TOKEN
- VALUE => (Enter the bot token that you copied from the developer portal)
- Click the 'Add' button after entering all of this information.
- Under 'Resources', do the following:
- Click on the 'Pencil' icon.
- Switch the worker from off to on.
- Click 'Confirm' to finalize the decision.
- NOTE: You are allocated 550 free Dyno hours, which will not last the entire month. However, if you provide a credit card to verify your identity, you are given an additional 450 hours, which will allow your bot to run indefinitely.
- update the PostgresManager class to optionally return a single value rather than a list of tuples returned by the query
- create a daily leaderboard update&post
- track user progress
- make profile result prettier
- find a better way to test locally
- find a way to make update set roles for users who didn't send the command