#!/bin/bash
# Path to your virtual environment python
PYTHON_PATH="/home/jvaebqrj/virtualenv/abyss.animixstream.store/3.13/bin/python"
BOT_PATH="/home/jvaebqrj/abyss.animixstream.store/abyss_bot.py"

# Check if bot.py is running
if ! pgrep -f "$BOT_PATH" > /dev/null
then
    # If not running, start it in the background
    nohup $PYTHON_PATH $BOT_PATH > /home/jvaebqrj/abyss.animixstream.store/bot.log 2>&1 &
fi