diff --git a/src/lavalink b/src/lavalink new file mode 160000 index 0000000..386d637 --- /dev/null +++ b/src/lavalink @@ -0,0 +1 @@ +Subproject commit 386d6371b9987c9f4cb2e2a7c340431115579e93 diff --git a/src/start.bat b/src/start.bat index 32eb9ce..219c775 100644 --- a/src/start.bat +++ b/src/start.bat @@ -1,6 +1,7 @@ @echo off -echo "Starting Lavalink server and waiting 20s..." -RUN "java -jar Lavalink/Lavalink.jar 1>/dev/null &" # showing only stderror -timeout /t 30 -echo "Done." +echo "Starting Lavalink server..." +dir lavalink +RUN "java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar 1>/dev/null &" # showing only stderror +echo "Starting Discord bot..." +dir .. RUN "python -u ./main.py" diff --git a/src/start.sh b/src/start.sh old mode 100644 new mode 100755 index 304ee6f..6508c39 --- a/src/start.sh +++ b/src/start.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -echo "Starting Lavalink server and waiting 20s..." -java -jar Lavalink/Lavalink.jar 1>/dev/null & # showing only stderror -sleep 20 -echo "Done." +echo "Starting Lavalink server..." +cd lavalink +java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar 1> /dev/null & # showing only stderror +echo "Starting Discord bot..." +cd .. python3 -u ./main.py