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
521 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 (
echo "Downloading Lavalink..."
call download.bat
)
tasklist /fi "ImageName eq Lavalink.jar" /fo csv 2> NUL | find /I "Lavalink.jar" > NUL
if "%ERRORLEVEL%" == "0" (
echo "Lavaling already started."
) else (
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-14 19:35:24 +02:00
echo "Starting Discord bot..."
python -u ./main.py