run.sh 203 B

1234567
  1. #!/bin/bash
  2. cd "$(dirname "$0")"
  3. setup_bot() { python3 -m venv "$PWD/env" && "$PWD"/env/bin/pip install -r requirements.txt; };
  4. [ ! -d "$PWD/env" ] && setup_bot
  5. exec "$PWD"/env/bin/python "$PWD"/bot.py