waitonbot/runloop.sh

16 lines
299 B
Bash
Executable File

#!/bin/bash
#This is just a basic loop to run in the background on my raspi.
#Restarts the bot if it dies, and notifies me
while :
do
git pull
echo "Press [CTRL+C] to stop..."
sleep 1
python3 WaitonBot.py
sleep 3
python3 CallOfTheVoid.py
echo "Died. Updating and restarting..."
done