#!/bin/bash

while true
do
    pgrep -f bot.py > /dev/null
    if [ $? -ne 0 ]; then
        nohup /home/batvoidc/py311/bin/python /home/batvoidc/public_html/bot.batvoid.com/bot.py > /dev/null 2>&1 &
    fi
    sleep 10
done