Skip to content

katie-oh/rengobot

 
 

Repository files navigation

A discord bot for playing rengo games!

Dependencies

  • 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 the admins and teachers 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 image
  • In rengobot.py, update the server ID and channel IDs Instructions here ![image](image
  • Run python rengobot.py in your terminal to spin up your bot! You should see something like this image

##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 image

Make sure that in your fly.io configuration, that there is no scaling and that the maximum number of instances is 1!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.8%
  • Dockerfile 1.1%
  • Procfile 0.1%