The inspiration for this bot was so that my friends and I can play the game of poker without actually betting real money (because we are broke college students). With this bot, we are able to use fake money to buy into game sessions, update our balance at the end of the session, and all while keeping a zero-sum game. We also currently have individual statistics and a leaderboard that displays everyone's progress throughout the game sessions we have, but are looking to add more statistics later.
Hello! Here is what you need to do if you would like to improve the Ledger Bot.
- Discord Account
- Python3
- pip
First, fork this repository, following GitHub's instructions, into your own directory.
- On your local machine, in the main project directory, create a
secretsfolder. - Create a file called
secrets.jsonwith the following structure:
{
"TOKEN": "[insert token here]"
}
Then, go to the Discord Developer Portal and follow these steps:
- Create a new bot application (button at the top-right of the screen) and name it whatever you would like
- Go into the application you made
- Go to the
Bottab and click onReset Token- You might need to provide your GitHub credentials.
- Copy the token and paste it into the
"TOKEN"field of thesecrets/secrets.jsonfile
Open up terminal and stay in the project root directory.
- Create virtual environment:
python3 -m venv bot-env
- Start the virtual environment:
source bot-env/bin/activate
- Install the requirements mentioned in
requirements.txt
pip install -r requirements.txt
Now, on Discord, create a Test Server of your own. Then, go back to the Discord Developer Portal and follow these steps:
- Go into your application
- Go to the
Installationtab - Check
Guild Install - In the
Install Linkdropdown, use aDiscord Provided Linkand go to the link given. - From here, Discord should instruct you on how to add the bot to your Test Server.
Open up terminal on your project main directory and type the command
python3 bot.py
This starts the Discord Ledger Bot and you will be able to play with the commands in your own Test Server!
If you would like to provide an improvement or change to the bot, publish your own branch, commit to it, and provide a PR describing the addition. I will review the PR and merge the branch if good.