update scripts

This commit is contained in:
Mylloon 2021-08-14 15:08:00 +02:00
parent 4e948545ca
commit 7657e31971
3 changed files with 11 additions and 8 deletions

1
src/lavalink Submodule

@ -0,0 +1 @@
Subproject commit 386d6371b9987c9f4cb2e2a7c340431115579e93

View file

@ -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"

9
src/start.sh Normal file → Executable file
View file

@ -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