diff --git a/Lavalink.jar b/Lavalink.jar index b95b625..a53a19b 100644 Binary files a/Lavalink.jar and b/Lavalink.jar differ diff --git a/README.md b/README.md index b443865..26c8923 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,26 @@ This guide will help you install the LavaLink server on an Ubuntu system. LavaLink is a Java application, so you'll need to have Java installed on your system. +### How to Use the Script + +1. Save the script to a file, for example `install_lavalink.sh`. +2. Make the script executable: + + ```bash + chmod +x install_lavalink.sh + + ``` + +3. Run the script with `sudo`: + + ```bash + sudo ./install_lavalink.sh + + ``` + + +This script will update your system, install Java, download the LavaLink JAR file, create the necessary configuration files, set up the systemd service, and start the LavaLink server. Make sure to replace `"dfanso"` in the configuration file with a secure password of your choice. + ### Step-by-Step Guide #### Step 1: Update Your System diff --git a/install_lavalink.sh b/install_lavalink.sh new file mode 100644 index 0000000..692fcc6 --- /dev/null +++ b/install_lavalink.sh @@ -0,0 +1,86 @@ +#!/bin/bash + +# Update and upgrade the system +echo "Updating system..." +sudo apt update && sudo apt upgrade -y + +# Install Java +echo "Installing Java..." +sudo apt install openjdk-11-jre-headless -y + +# Verify Java installation +java_version=$(java -version 2>&1) +echo "Java version installed: $java_version" + +# Download LavaLink.jar +echo "Downloading LavaLink.jar..." +wget https://github.com/DFanso/lavalink-server/blob/main/Lavalink.jar -O /opt/Lavalink.jar + +# Create LavaLink configuration file +echo "Creating application.yml..." +cat <