forked from vandernorth/NecroBot.GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNecroBot.GUI.BanSafe.bat
More file actions
32 lines (27 loc) · 872 Bytes
/
NecroBot.GUI.BanSafe.bat
File metadata and controls
32 lines (27 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
start NecroBot.GUI.exe
set hr=%time:~0,2%
if "%hr:~0,1%" equ " " set hr=0%hr:~1,1%
cd logs
if not exist Old_Logs_%date:~6,4%%date:~3,2%%date:~0,2%_%hr%.%time:~3,2%.%time:~6,2% (
mkdir Old_Logs_%date:~6,4%%date:~3,2%%date:~0,2%_%hr%.%time:~3,2%.%time:~6,2%
)
cd %%~dp0\..\
move *.txt Old_Logs_%date:~6,4%%date:~3,2%%date:~0,2%_%hr%.%time:~3,2%.%time:~6,2%
:loop
for /f "delims=" %%a in ('type *.txt ^| find /C "CatchSuccess"') do @set /a catches=%%a
for /f "delims=" %%a in ('type *.txt ^| find /C "] Name: "') do @set /a stops=%%a
echo Pokemon: %catches%
echo PokeStop: %stops%
echo [%date%_%time%] Pokemon: %catches% PokeStop: %stops% >> CountSinceStart_%date:~6,4%%date:~3,2%%date:~0,2%_%hr%.txt
IF /I %catches% GEQ 950 (
taskkill /im NecroBot.GUI.exe
exit
)
IF /I %stops% GEQ 1900 (
taskkill /im NecroBot.GUI.exe
exit
)
timeout 10
cls
goto loop