py-discord-role-selector/py-discord-role-selector.sh

17 lines
268 B
Bash
Executable File

#!/bin/bash
if [[ ! -d ./venv ]]
then
python -m venv venv || python3 -m venv venv || (
echo "Cannot create a virtual environment"
exit 1
)
fi
source ./venv/Scripts/activate
source ./venv/bin/activate
pip install discord.py
python -u bot.py