Welcome to the MarioBot repository! Our Slack bot is designed to streamline time-tracking for mariokart time trials. Just add your time, and MarioBot will handle the rest, keeping tabs on everyone's input. Compete with your friends or colleagues and climb the leaderboard to see who's the most punctual!
🕒 Time Tracking: Quickly add your times and let the bot manage the rest.
🏆 Leaderboard: See who's on top with our integrated leaderboard.
🤖 Slack Integration: Seamlessly integrated with your Slack workspace.
This section provides a guide to get the bot up and running on your local machine. Whether you're looking to contribute or just play around with the code, you'll find everything you need to get started here.
- Docker desktop
- Or Docker and docker-compose (Docker desktop includes both)
- An ngrok account.
- A Slackbot and Slack workspace
- See Creating and Installing a Slackbot for more information.
- Clone the repository.
- Rename the
.env.example
file to.env
and fill in the values.- To get the NGROK auth token go to the ngrok dashboard and copy the token.
- To get the Slackbot token go to your Slackbot settings, got to OAuth & Permissions, and copy the Bot User OAuth Token.
- Run
docker-compose up
to start the bot. - Go to
http://localhost:4040
to get the ngrok URL. - Go to your Slackbot settings and add the ngrok URL as the request URL in your slash command settings. Again, see Creating and Installing a Slackbot for more information.
- You're all set! Try adding a time to the bot and see if it works! Changing the python code will automatically restart the bot, so you can test your changes immediately.
When developing while using docker-compose, the bot will automatically restart when you change the python code. This means you can test your changes immediately! Happy coding :D