-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartBot.bat
45 lines (42 loc) · 841 Bytes
/
StartBot.bat
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
@echo off
cls
echo ### ###
echo # BotStarter - CorpNewt #
echo ### ###
echo.
set "thisDir=%~dp0"
set "start=Start.bat"
set "ld=Lavalink"
set "lava=Lavalink.jar"
set /a wait=5
if EXIST "%thisDir%\%ld%\%lava%" (
echo Starting Lavalink server...
pushd "%thisDir%\%ld%"
start "" java -jar "%lava%"
popd
echo Waiting %wait% seconds...
echo.
) else (
echo "%thisDir%\%ld%\%lava%"
echo does not exist!
echo.
echo You can get it from:
echo https://github.com/Frederikam/Lavalink/releases/latest
pause
exit /b
)
timeout %wait%
echo.
if EXIST "%thisDir%\%start%" (
echo Starting bot...
start cmd /c "%thisDir%\%start%"
echo.
) else (
echo "%thisDir%\%start%"
echo does not exist!
pause
exit /b
)
echo.
echo Done.
timeout %wait%