BlueGit

blue-star danique-bot

Files

danique-bot / updateandrunbot.bat

updateandrunbot.bat

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
updateandrunbot.bat 328 B Download Raw
1@echo off
2:start
3git checkout .
4git pull
5For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
6For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
7echo %mydate%_%mytime% > lastreboot.txt
8node bot.js >> currentlog.txt
9echo She ded. Restarting.
10ren currentlog.txt crashlog.txt
11goto :start