Skip to content

Commit

Permalink
Merge pull request #57 from Moosieus/main
Browse files Browse the repository at this point in the history
Create notNotOdd.bat
  • Loading branch information
Lvcky-gg authored Dec 24, 2023
2 parents 0c78560 + ba6d16e commit 7d841c2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions notNotOdd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off

:restart
echo Starting notNotOdd...
node index.js

if %ERRORLEVEL%==0 (
REM If the exit code is 0, the script exited normally
echo Script exited normally.
exit
) else (
REM Account for heisenbugs
echo Script crashed with exit code %ERRORLEVEL%, restarting in 5 seconds...
REM Wait for 5 seconds before restarting the script
timeout /t 5
REM Go back to the start of the script to restart
goto restart
)

0 comments on commit 7d841c2

Please sign in to comment.