diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..21b2aef --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# .bat должны быть с CRLF, иначе cmd.exe ломается на метках/goto +*.bat text eol=crlf diff --git a/start_bot.bat b/start_bot.bat index cda5e7d..371a2bc 100644 --- a/start_bot.bat +++ b/start_bot.bat @@ -7,6 +7,7 @@ title Бот ИКП (VK) echo. echo [%date% %time%] Запуск бота ИКП... python bot.py +echo. echo [%date% %time%] Бот остановился (код %errorlevel%). Перезапуск через 5 секунд... echo Нажмите Ctrl+C, чтобы выйти полностью. timeout /t 5 /nobreak >nul