#! /usr/bin/env bash ABS_PATH="$(readlink -f "$0")" RUN_DIR="$(dirname "$ABS_PATH")" # Relative paths to main script ENTRY='rdbot.py' # cd into the bot's root path and run # shellcheck disable=SC2164 cd "$RUN_DIR" python3.11 "$ENTRY" RETURN_CODE="$?" # Cleanup # shellcheck disable=SC2164 # shellcheck disable=SC2103 cd - > /dev/null exit "$RETURN_CODE"