From 7657e31971064cbe6e12ba55aff28718f81ebaa0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 14 Aug 2021 15:08:00 +0200 Subject: [PATCH] update scripts --- src/lavalink | 1 + src/start.bat | 9 +++++---- src/start.sh | 9 +++++---- 3 files changed, 11 insertions(+), 8 deletions(-) create mode 160000 src/lavalink mode change 100644 => 100755 src/start.sh 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