working script
This commit is contained in:
parent
69d545a1a9
commit
6c69efdd73
1 changed files with 20 additions and 5 deletions
23
start.bat
23
start.bat
|
@ -1,7 +1,22 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
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..."
|
echo "Starting Lavalink server..."
|
||||||
cd lavalink
|
start java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar 1> NUL & REM showing only stderror
|
||||||
RUN "java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar 1>/dev/null &" # showing only stderror
|
)
|
||||||
echo "Starting Discord bot..."
|
|
||||||
cd ..
|
cd ..
|
||||||
RUN "python -u ./main.py"
|
echo "Starting Discord bot..."
|
||||||
|
python -u ./main.py
|
||||||
|
|
||||||
|
:: if you want to kill the java process, do this command:
|
||||||
|
:: pkill -9 -f Lavalink.jar
|
||||||
|
|
Reference in a new issue