#!/bin/sh
cd "$(dirname "$0")" || exit 1
if [ -x ".venv/bin/python" ]; then
  PY=".venv/bin/python"
elif command -v python3 >/dev/null 2>&1; then
  PY=python3
else
  PY=python
fi
if [ "$1" = "setup" ]; then
  exec "$PY" setup.py
fi
exec "$PY" -m bot "$@"
