A discord bot for playing rengo games!
- sgf-render
- python-discord
- python-sgfmill
Make sure to run the bot in an environment with read/write permissions
- installed Rust
- updated requirements.txt
- updated admin and teachers
##Notes:
- If you're testing, be sure to replace the server/channel/account IDs with your own. Otherwise, even though you are running the project locally, it will affect the actual channels! (Ex: there will be duplicate messages, it'll be confused, the state gets weird)
##To run this project locally:
- Create a
requirements.txt
file and add the following lines to it
git+[link to your repo]
sgfmill
python-discord
- Create a
state.txt
file and add the following text[]
- Create a
token.txt
file and add your Discord bot token to it. Instructions here - Go to
rengobot.py
and update theadmins
andteachers
array with account IDs of your admins/teachers. (I don't think Columbus Go Club uses the teachers function, I actually haven't even looked into what it's for) Instructions here - In
rengobot.py
, update the server ID and channel IDs Instructions here ![image]( - Run
python rengobot.py
in your terminal to spin up your bot! You should see something like this
##Deploying
We are currently using fly.io with a Docker image. Once you build your Docker image, you can use your image name in the fly.toml
file
Make sure that in your fly.io configuration, that there is no scaling and that the maximum number of instances is 1!