#!/bin/bash INSTALLATION=0 if [[ ! -d venv ]] then python3 -m venv venv || python -m venv venv || ( echo "Could not create a Python virtual environment." exit 1 ) INSTALLATION=1 fi if [[ -f ./venv/bin/activate ]]; then source ./venv/bin/activate; fi if [[ -f ./venv/Scripts/activate ]]; then source ./venv/Scripts/activate; fi if [[ $INSTALLATION -eq 1 ]] then pip install discord.py pip install pillow fi python -u bot.py