Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1 KB

README.md

File metadata and controls

42 lines (31 loc) · 1 KB

TourneyBot

Introduction

This bot manages a tournament for the ranked bedwars server.

The majority of the logic is performed within the API, written using Nitro & Cloudflare D1 hosted on Cloudflare Workers.

Running the fucking thing

  1. Create a python virtual environment, this allows us to use known working versions of modules
python -m venv ./venv
  1. Activate the virtual environment
./venv/Scripts/activate
  1. Install all dependencies
pip install -r requirements.txt
  1. Configure the bot. There are three main files used for configuration. constants.json & tourney.constants.json & .key
  • constants.json - This requires an API key and API URL, get these from ohb00.
  • tourney.constants.json - This contains the roles and channels required for running the bot.
  • .key - This contains the bot's token.
  1. Run the bot
python ./main.py
  1. Set up number of players
-config players 2
  1. Congratulations! You are now running the bot.