diff --git a/run.sh b/run.sh index fa6d8ffab1..ca08d880a8 100755 --- a/run.sh +++ b/run.sh @@ -13,6 +13,15 @@ echo "There's no "$filename" file. Please use ./setup.sh -c to creat one." fi while true do +echo "Checking for updates...." +git pull +git submodule update --init --recursive +git submodule foreach git pull origin master +source bin/activate +pip install -r requirements.txt --upgrade +pip install -r requirements.txt +read -p "WARNING: Verify if the Config.json file got updated. If Yes, check if your modifications are still valid before proceeding. Waiting 20 seconds so you can verify and stop the bot. +" -r -s -n1 -t 20 python pokecli.py -cf $filename echo `date`" Pokebot "$*" Stopped." read -p "Press any button or wait 20 seconds to continue.