Denim-Bot/start.sh
Histmy a246a5007f better zareaguj,
bot also selfupdates packages,
formating shit
2022-06-12 15:18:25 +02:00

25 lines
473 B
Bash

while true
do
cas=$(date +"%s")
if node . $neco
then
echo stahuju update
git stash
git pull
npm i
tsc
unset $neco
else
echo exit code byl $?
novejcas=$(date +"%s")
neco=$(($novejcas-$cas))
if (($cas+86400<$novejcas))
then
echo Pošlo to, let\'s restart
else
echo Pošlo to absolutně, seru na to
break
fi
fi
done