From af307377ad38fca455e202c8abd7625e5017fac6 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Wed, 3 May 2023 02:08:09 +0200 Subject: [PATCH] Update exit codes in the autostart doc for Windows (#6111) --- docs/autostart_windows.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/autostart_windows.rst b/docs/autostart_windows.rst index 902c00c2d..6a41ca73d 100644 --- a/docs/autostart_windows.rst +++ b/docs/autostart_windows.rst @@ -21,10 +21,13 @@ Open that document in Notepad, and paste the following text in it: CALL "%userprofile%\redenv\Scripts\activate.bat" python -O -m redbot - IF %ERRORLEVEL% NEQ 0 ( - ECHO Restarting Red... - GOTO RED - ) + IF %ERRORLEVEL% == 1 GOTO RESTART_RED + IF %ERRORLEVEL% == 26 GOTO RESTART_RED + EXIT /B %ERRORLEVEL% + + :RESTART_RED + ECHO Restarting Red... + GOTO RED Replace ```` with the instance name of your bot. If you created your VENV at a location other than the recommended one, replace ``%userprofile%\redenv\Scripts\activate.bat`` with the path to your VENV.