Merge branch 'renovate/dev.lavalink.youtube-v2-1.x' into 'main'
fix(deps): update dependency dev.lavalink.youtube:v2 to v1.15.0 See merge request anthorob/netneutrality!80
This commit is contained in:
commit
c19287d580
8 files changed
+41
-8
No files matched your search
@@ -17,6 +17,8 @@ MARIADB_AUTO_UPGRADE=1
|
|||||||
|
|
||||||
NETNEUTRALITY_PO_TOKEN=
|
NETNEUTRALITY_PO_TOKEN=
|
||||||
NETNEUTRALITY_VISITOR_DATA=
|
NETNEUTRALITY_VISITOR_DATA=
|
||||||
|
NETNEUTRALITY_CIPHER_URL=http://localhost:8001
|
||||||
|
NETNEUTRALITY_CIPHER_PASSWORD=
|
||||||
|
|
||||||
NETNEUTRALITY_SENTRY_DSN=
|
NETNEUTRALITY_SENTRY_DSN=
|
||||||
GITLAB_HOST=
|
GITLAB_HOST=
|
||||||
|
|||||||
+10
-4
@@ -1,18 +1,24 @@
|
|||||||
|
NETNEUTRALITY_TAG=latest
|
||||||
|
|
||||||
NETNEUTRALITY_BOT_ENV=dev
|
NETNEUTRALITY_BOT_ENV=dev
|
||||||
NETNEUTRALITY_BOT_TOKEN=
|
NETNEUTRALITY_BOT_TOKEN=
|
||||||
NETNEUTRALITY_BOT_PREFIX=
|
NETNEUTRALITY_BOT_PREFIX=$
|
||||||
NETNEUTRALITY_BOT_OWNER=
|
NETNEUTRALITY_BOT_OWNER=
|
||||||
NETNEUTRALITY_BOT_INVITE=
|
NETNEUTRALITY_BOT_INVITE=
|
||||||
NETNEUTRALITY_API_PORT=9000
|
NETNEUTRALITY_API_PORT=9000
|
||||||
|
|
||||||
MYSQL_HOST=127.0.0.1
|
MYSQL_HOST=127.0.0.1
|
||||||
MYSQL_USER=root
|
|
||||||
MYSQL_PASSWORD=
|
|
||||||
MYSQL_DATABASE=
|
|
||||||
MYSQL_PORT=3306
|
MYSQL_PORT=3306
|
||||||
|
MYSQL_USER=java
|
||||||
|
MYSQL_PASSWORD=password
|
||||||
|
MYSQL_DATABASE=netneutrality
|
||||||
|
MYSQL_ROOT_PASSWORD=password
|
||||||
|
MARIADB_AUTO_UPGRADE=1
|
||||||
|
|
||||||
NETNEUTRALITY_PO_TOKEN=
|
NETNEUTRALITY_PO_TOKEN=
|
||||||
NETNEUTRALITY_VISITOR_DATA=
|
NETNEUTRALITY_VISITOR_DATA=
|
||||||
|
NETNEUTRALITY_CIPHER_URL=http://localhost:8001
|
||||||
|
NETNEUTRALITY_CIPHER_PASSWORD=
|
||||||
|
|
||||||
NETNEUTRALITY_SENTRY_DSN=
|
NETNEUTRALITY_SENTRY_DSN=
|
||||||
GITLAB_HOST=
|
GITLAB_HOST=
|
||||||
|
|||||||
+8
-1
@@ -31,7 +31,14 @@ services:
|
|||||||
MYSQL_USER: java
|
MYSQL_USER: java
|
||||||
MYSQL_PASSWORD: password
|
MYSQL_PASSWORD: password
|
||||||
MYSQL_DATABASE: netneutrality
|
MYSQL_DATABASE: netneutrality
|
||||||
|
ejs-api:
|
||||||
|
image: ghcr.io/kikkia/yt-cipher:master
|
||||||
|
container_name: ejs_signature_api
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- netneutrality
|
||||||
|
# environment: # UNCOMMENT THIS LINE AND API_TOKEN TO ADD A PASSWORD
|
||||||
|
# - API_TOKEN=test
|
||||||
volumes:
|
volumes:
|
||||||
netneutrality-db: null
|
netneutrality-db: null
|
||||||
|
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>dev.lavalink.youtube</groupId>
|
<groupId>dev.lavalink.youtube</groupId>
|
||||||
<artifactId>v2</artifactId>
|
<artifactId>v2</artifactId>
|
||||||
<version>1.13.3</version>
|
<version>1.15.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ public class NetNeutrality {
|
|||||||
|
|
||||||
if ("dev".equals(env)) {
|
if ("dev".equals(env)) {
|
||||||
Configurator.setLevel("net.dv8tion.jda", Level.DEBUG);
|
Configurator.setLevel("net.dv8tion.jda", Level.DEBUG);
|
||||||
|
Configurator.setLevel("dev.lavalink.youtube", Level.DEBUG);
|
||||||
|
Configurator.setLevel("com.sedmelluq.discord", Level.DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
instance = new NetNeutrality();
|
instance = new NetNeutrality();
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ public class TaskManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
|
logger.info("Initializing task manager...");
|
||||||
|
|
||||||
loadBuiltInTasks();
|
loadBuiltInTasks();
|
||||||
loadScheduledTasks();
|
loadScheduledTasks();
|
||||||
taskService.loadTasks();
|
taskService.loadTasks();
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import com.sedmelluq.discord.lavaplayer.source.http.HttpAudioSourceManager;
|
|||||||
import com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager;
|
import com.sedmelluq.discord.lavaplayer.source.soundcloud.SoundCloudAudioSourceManager;
|
||||||
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
|
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
|
||||||
import dev.lavalink.youtube.YoutubeAudioSourceManager;
|
import dev.lavalink.youtube.YoutubeAudioSourceManager;
|
||||||
|
import dev.lavalink.youtube.YoutubeSourceOptions;
|
||||||
import me.bobert.netneutrality.core.command.CommandExecutionResult;
|
import me.bobert.netneutrality.core.command.CommandExecutionResult;
|
||||||
import me.bobert.netneutrality.core.context.CommandContext;
|
import me.bobert.netneutrality.core.context.CommandContext;
|
||||||
import me.bobert.netneutrality.db.GSettings;
|
import me.bobert.netneutrality.db.GSettings;
|
||||||
@@ -60,7 +61,16 @@ public class MusicManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void initPlayerManager() {
|
public static void initPlayerManager() {
|
||||||
playerManager.registerSourceManager(new YoutubeAudioSourceManager());
|
logger.debug("Initializing music player sources..");
|
||||||
|
|
||||||
|
String cipherUrl = Settings.getInstance().get("NETNEUTRALITY_CIPHER_URL");
|
||||||
|
String cipherPassword = Settings.getInstance().get("NETNEUTRALITY_CIPHER_PASSWORD");
|
||||||
|
YoutubeSourceOptions options = new YoutubeSourceOptions()
|
||||||
|
.setAllowSearch(true)
|
||||||
|
.setAllowDirectVideoIds(true)
|
||||||
|
.setAllowDirectPlaylistIds(true)
|
||||||
|
.setRemoteCipher(cipherUrl, cipherPassword, "");
|
||||||
|
playerManager.registerSourceManager(new YoutubeAudioSourceManager(options, YoutubeAudioSourceManager.DEFAULT_CLIENTS));
|
||||||
playerManager.registerSourceManager(SoundCloudAudioSourceManager.createDefault());
|
playerManager.registerSourceManager(SoundCloudAudioSourceManager.createDefault());
|
||||||
playerManager.registerSourceManager(new UdioAudioSourceManager());
|
playerManager.registerSourceManager(new UdioAudioSourceManager());
|
||||||
playerManager.registerSourceManager(new HttpAudioSourceManager());
|
playerManager.registerSourceManager(new HttpAudioSourceManager());
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ logger.lavaplayer.additivity = false
|
|||||||
logger.lavaplayer.appenderRef.rolling.ref = LogToRollingFile
|
logger.lavaplayer.appenderRef.rolling.ref = LogToRollingFile
|
||||||
logger.lavaplayer.appenderRef.console.ref = consoleLogger
|
logger.lavaplayer.appenderRef.console.ref = consoleLogger
|
||||||
|
|
||||||
|
logger.lavalink.name = dev.lavalink.youtube
|
||||||
|
logger.lavalink.level = info
|
||||||
|
logger.lavalink.additivity = false
|
||||||
|
logger.lavalink.appenderRef.rolling.ref = LogToRollingFile
|
||||||
|
logger.lavalink.appenderRef.console.ref = consoleLogger
|
||||||
|
|
||||||
logger.app.name = me.bobert.netneutrality
|
logger.app.name = me.bobert.netneutrality
|
||||||
logger.app.level = debug
|
logger.app.level = debug
|
||||||
|
|||||||
Reference in new issue
Block a user