Creates catan game on colonist.io and sends the game link to slack
selenium
json
requests
- Install Chromedriver
- Create a slack app
- Invite the slack app to a channel
- Run the script with the path to the driver and the slack app URL as inputs
- The script opens an instance of Chrome.
- Chrome goes the colonist.io website.
- Clicks the
create game
button. - Makes the game private via the checkmark.
- Once the game is private, sends the link to the game in the slack channel as the app.
- The app then waits 2 minutes for someone to join, if no user joins the lobby, the app exits the game, closing the lobby.
- Once someone joins, the app leaves the lobby, making the first person to join the new host and able to start the game.
- The app then closes its instance.