This repository has been archived on 2022-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
KassouBot/start.bat

20 lines
524 B
Batchfile
Raw Normal View History

@echo off
2021-08-14 19:35:24 +02:00
cd src\lavalink
if exist Lavalink.jar (
echo "Lavalink found."
) else (
2021-08-15 18:01:24 +02:00
echo "Downloading Lavalink ..."
2021-08-14 19:35:24 +02:00
call download.bat
)
tasklist /FI "ImageName eq java.exe" 2> NUL | find /i "java.exe" | find /i "Console" > NUL
if %ERRORLEVEL% == 0 (
2021-08-14 19:35:24 +02:00
echo "Lavaling already started."
) else (
2021-08-15 18:01:24 +02:00
echo "Starting Lavalink server ..."
2021-08-14 20:16:02 +02:00
start java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar REM Starting the server in another window
2021-08-14 19:35:24 +02:00
)
2021-08-14 16:15:08 +02:00
cd ..
2021-08-15 18:01:24 +02:00
echo "Starting Discord bot ..."
2021-08-14 19:35:24 +02:00
python -u ./main.py