-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
50 lines (40 loc) · 1003 Bytes
/
setup.bat
File metadata and controls
50 lines (40 loc) · 1003 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
41
42
43
44
45
46
47
48
49
50
@echo off
setlocal
set CONFIG_FILE=config.toml
if exist "%CONFIG_FILE%" (
echo [X] config.toml already exists.
) else (
echo [INFO] Creating config.toml...
(
echo [bot]
echo token = ""
echo user_id = ""
echo app_id = ""
echo.
echo [channels]
echo verification = ""
echo.
echo [server]
echo guild_id = ""
echo verification_role_id = ""
echo.
echo [captcha]
echo timeout = 300
echo length = 6
echo footer = ""
echo.
echo [permissions]
echo whitelisted_roles = [""]
) > "%CONFIG_FILE%"
echo [+] config.toml has been created. Please fill in your details.
)
echo [INFO] Installing dependencies...
npm install
if %errorlevel% neq 0 (
echo [ERROR] npm install failed. Please check your npm setup.
exit /b 1
)
echo [!] Setup complete! You can now run the bot with:
echo Guardian.bat
timeout /t 5 /nobreak >nul
exit /b