audius-plugin
enables Audius as an audio source for Lavalink.
This document explains how to get and install the Audius plugin for Lavalink.
This plugin was built from the Lavalink Plugin Template. Thank you to the Template contributors and to the Lavalink project.
Once the plugin is installed and Lavalink is restarted, you can use Audius as an audio source in your client.
This plugin supports Audius tracks, albums, and playlist URLs:
https://audius.co/user/track-title
https://audius.co/user/album/album-title
https://audius.co/user/playlist/playlist-title
Also, you may use the audsearch
prefix for searching:
audsearch:some track by an artist
Refer to your client's documentation for configuring search sources.
- Java Development Kit (JDK) 11 or higher installed.
- Git installed.
- (For building from source) Gradle installed.
This is the easiest method for users currently. You can configure Lavalink to download the plugin on startup by adding the following to your application.yml
file under the lavalink
section:
lavalink:
# ... other server configurations ...
plugins:
- dependency: com.github.bednie:audius-plugin:{VERSION} # Replace {VERSION} with the latest version from the audius-plugin "Releases" tab at https://jitpack.io/#bednie/audius-plugin/
repository: https://jitpack.io # Specify JitPack as the source repository
# ... other lavalink configurations ...
# ... other top-level configurations ...
Save your application.yml
and restart your Lavalink server. Lavalink will read the plugins
configuration and download the plugin JAR from JitPack.
If you prefer to build the plugin yourself and install it locally, you will use the pluginsDir
feature of Lavalink, which is one of the ways Lavalink loads plugins.
-
Clone the Repository: Clone the plugin's Git repository to your local machine.
git clone https://github.com/bednie/audius-plugin.git cd audius-plugin
-
Build the Project: Build the project using Gradle.
./gradlew build
This command will compile the source code and package it into a JAR file. Look for the resulting JAR in the
build/libs
directory within your cloned project folder (e.g.,your_project_root/build/libs/audius-plugin-*.jar
). -
Install the Plugin JAR: Copy the built JAR file into the directory specified by the
pluginsDir
configuration in your Lavalinkapplication.yml
. This tells Lavalink where to find locally installed plugins.Your
application.yml
might include:lavalink: server: # ... other configurations ... pluginsDir: "/plugins" # <--- Directory where Lavalink loads local plugins # ... other top-level configurations ...
Copy the JAR file to the configured
pluginsDir
. For example, if yourpluginsDir
is/plugins
, you would copy the JAR there. The exact command depends on your setup (e.g.,cp
for local,scp
for remote). Refer to the official Lavalink documentation for detailed instructions on configuringpluginsDir
and managing local plugins.
After copying the JAR, restart your Lavalink server to load the plugin from the specified directory.
Please open an issue for help with this plugin.