Skip to content

Commit

Permalink
Fix music...again
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Jul 13, 2024
1 parent 2902508 commit 15fe189
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ repositories {
name 'jitpack'
url 'https://jitpack.io'
}
maven {
name 'lavalink'
url 'https://maven.lavalink.dev/releases'
}
}

dependencies {
implementation("org.apache.commons:commons-text:1.10.0")
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
implementation("net.dv8tion:JDA:5.0.0-beta.23")
implementation("ch.qos.logback:logback-classic:1.4.5")
implementation("dev.arbjerg:lavaplayer:2.1.1") // https://github.com/lavalink-devs/lavaplayer
implementation("com.github.lavalink-devs:youtube-source:1.0.5")
implementation("dev.arbjerg:lavaplayer:2.2.1") // https://github.com/lavalink-devs/lavaplayer
implementation("dev.lavalink.youtube:v2:1.4.0")
implementation("org.mongodb:mongodb-driver-sync:4.8.2")
implementation ("org.scilab.forge:jlatexmath:1.0.7")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ private WylxPlayerManager() {
YoutubeAudioSourceManager ytSrcMgr = new YoutubeAudioSourceManager(
/*allowSearch:*/ true,
new MusicWithThumbnail(),
new WebWithThumbnail(),
new AndroidWithThumbnail()
new WebWithThumbnail()
);

playerManager.registerSourceManager(ytSrcMgr);

// Add rest of the build-in audio sources
AudioSourceManagers.registerRemoteSources(playerManager);
AudioSourceManagers.registerRemoteSources(
playerManager,
com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.class
);
AudioSourceManagers.registerLocalSource(playerManager);

managers = new ConcurrentHashMap<>();
Expand Down

0 comments on commit 15fe189

Please sign in to comment.