Update install.sh

This commit is contained in:
Josh S 2022-11-28 13:48:56 -05:00 committed by GitHub
parent e47380c59f
commit 29fd1737d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,13 +74,12 @@ fi
# Install Lavalink # Install Lavalink
echo -e "\e[32m* Starting Lavalink Installation\e[0m" echo -e "\e[32m* Starting Lavalink Installation\e[0m"
mkdir ~/Lavalink && cd ~/Lavalink mkdir ~/Lavalink && cd ~/Lavalink
wget https://github.com/Cog-Creators/Lavalink-Jars/releases/latest/download/Lavalink.jar > /dev/null 2>&1 wget https://cdn.darrennathanael.com/jars/Lavalink.jar > /dev/null 2>&1
echo "What port do you want your Lavalink to run on?" echo "What port do you want your Lavalink to run on?"
read Lava_Port read Lava_Port
echo "What password do you want to set for your Lavalink?" echo "What password do you want to set for your Lavalink?"
read Lava_Pass read Lava_Pass
echo " echo "server: # REST and WS server
server: # REST and WS server
port: $Lava_Port port: $Lava_Port
address: 0.0.0.0 address: 0.0.0.0
@ -88,11 +87,11 @@ lavalink:
server: server:
password: \"$Lava_Pass\" password: \"$Lava_Pass\"
playerUpdateInterval: 5 # How frequently to send player updates to clients, in seconds playerUpdateInterval: 5 # How frequently to send player updates to clients, in seconds
statsTaskInterval: 30 # How frequently to send the node stats to clients, in seconds statsTaskInterval: 60 # How frequently to send the node stats to clients, in seconds
koe: koe:
useEpoll: true useEpoll: true
highPacketPriority: true highPacketPriority: true
bufferDurationMs: 200 bufferDurationMs: 400
byteBufAllocator: "default" byteBufAllocator: "default"
sources: sources:
# Remote sources # Remote sources
@ -113,15 +112,15 @@ lavalink:
lavaplayer: lavaplayer:
nonAllocating: false # Whether to use the non-allocating frame buffer. nonAllocating: false # Whether to use the non-allocating frame buffer.
frameBufferDuration: 5000 # The frame buffer duration, in milliseconds frameBufferDuration: 5000 # The frame buffer duration, in milliseconds
youtubePlaylistLoadLimit: 60 # Number of pages at 100 each youtubePlaylistLoadLimit: 6 # Number of pages at 100 each
gc-warnings: true gc-warnings: true
youtubeSearchEnabled: true youtubeSearchEnabled: true
odyseeSearchEnabled: true odyseeSearchEnabled: true
soundcloudSearchEnabled: true soundcloudSearchEnabled: true
yandexMusicSearchEnabled: true yandexMusicSearchEnabled: true
#youtubeConfig: #youtubeConfig: (Youtube account credentials, needed to play age restricted tracks)
# email: "" #email: ""
# password: "" #password: ""
# You can get your yandex oauth token here https://music-yandex-bot.ru/ used to remove the 30s limit on some tracks # You can get your yandex oauth token here https://music-yandex-bot.ru/ used to remove the 30s limit on some tracks
#yandexOAuthToken: #yandexOAuthToken:
#ratelimit: #ratelimit:
@ -143,35 +142,19 @@ sentry:
# some_key: some_value # some_key: some_value
# another_key: another_value # another_key: another_value
#logging: logging:
# file: file:
# path: ./logs/ path: ./logs/
# logback: logback:
# rollingpolicy: rollingpolicy:
# max-file-size: 1GB max-file-size: 1GB
# max-history: 30 max-history: 30
level: level:
root: INFO root: INFO
lavalink: INFO lavalink: INFO
" > application.yml " > application.yml
echo "
{
"apps":[
{
"name":"Lavalink",
"cwd":".",
"script":"/usr/bin/java",
"args":[
"-jar",
"/root/Lavalink/Lavalink.jar",
],
"exec_interpreter":"",
"exec_mode":"fork"
}
]
}
" > config.json
echo -e "\e[32m* Lavalink Installation Completed\e[0m" echo -e "\e[32m* Lavalink Installation Completed\e[0m"
# Start Lavalink # Start Lavalink