Python 3.8+ (check with python --version)
Git (for cloning the repository)
pip
git clone https://github.com/TechCoursesUL/ULTC_BOT
cd ULTC_BOT
To keep dependencies isolated, create a virtual environment using Python’s venv module:
python -m venv env
Activate the virtual environment:
On Windows:
venv\Scripts\activate
On macOS/Linux:
source venv/bin/activate
With the virtual environment activated, install the required dependencies using pip:
pip install -r requirements.txt
Before running the bot, make sure you create a .env file in the root of the project to store your bot token and other configuration secrets and place the ULTCDB private key JSON at /backend/DBAUTH.json
Create a .env file and add your bot token:
DISCORD_TOKEN=your-bot-token-here
Replace your-bot-token-here with the actual token.
Now you’re ready to run the bot! With the virtual environment still active, use:
python bot.py
deactivate
Install a new dependency: If you add a new package, don’t forget to update requirements.txt:
pip install <package-name>
pip freeze > requirements.txt
Updating dependencies: If there are changes to requirements.txt, you can update the installed packages by running:
pip install --upgrade -r requirements.txt