forked from Kiyoraka/Kiyoraka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-pool.bat
More file actions
40 lines (34 loc) ยท 850 Bytes
/
run-pool.bat
File metadata and controls
40 lines (34 loc) ยท 850 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
33
34
35
36
37
38
39
40
@echo off
echo.
echo ๐ฎ =====================================
echo RUNNING POOL STATS SYSTEM
echo =====================================
echo.
REM Check if token.txt exists
if not exist token.txt (
echo โ token.txt not found!
echo Please create token.txt with your GitHub Personal Access Token
pause
exit /b 1
)
REM Set GitHub Token from file
set /p PERSONAL_GITHUB_TOKEN=<token.txt
echo ๐ Using GitHub token from token.txt...
echo ๐ Running pool stats calculation...
echo.
REM Run the pool system
node pool.js
if %ERRORLEVEL% neq 0 (
echo.
echo โ Pool stats failed! Check:
echo 1. GitHub token is valid
echo 2. Internet connection
echo 3. API rate limits
echo.
) else (
echo.
echo โ
Pool stats completed successfully!
echo ๐ Check your updated README.md
echo.
)
pause