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
2021-08-15 18:35:49 +02:00

18 lines
502 B
Batchfile

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