Update to JDA 5.6.1, Add YouTube OAuth2 support, Transform sources, and expanded audio managers #1836
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR extends JMusicBot with optional YouTube OAuth2 login, a transformable source mechanism, and additional audio source managers. It also updates dependencies and documents the fork-specific changes.
Key Changes
youtubeoauth2inconfig.txt.youtubetoken.txt.transformssection inconfigto rewrite inputs into playable sources.TransformativeAudioSourceManagerloads transformed inputs using selectors and formatting.BotConfigloadsyoutubeoauth2andtransforms.Botwires aYoutubeOauth2TokenHandlerinto logback to intercept OAuth messages.reference.confdocuments new options and defaults.README.mdupdated with fork notice and OAuth instructions.Files Touched
src/main/java/com/jagrosh/jmusicbot/BotConfig.java: loadyoutubeoauth2andtransforms.src/main/java/com/jagrosh/jmusicbot/Bot.java: initializeYoutubeOauth2TokenHandler.src/main/resources/reference.conf: addyoutubeoauth2,transforms, and explanatory comments.src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java: register transforms, YouTube OAuth2, and new source managers.src/main/java/com/jagrosh/jmusicbot/audio/TransformativeAudioSourceManager.java: new manager for input rewrites.src/main/java/com/jagrosh/jmusicbot/utils/YoutubeOauth2TokenHandler.java: logback TurboFilter to handle OAuth flow and token persistence.README.md: fork/OAuth notes.pom.xml: dependency updates and repositories.Configuration
config.txt:youtubeoauth2(boolean, defaultfalse)transforms(object, default{})Dependency Updates
5.6.12.2.4dev.lavalink.youtube:common:1.13.5com.dunctebot:sourcemanagers:1.9.0(excludes legacy YouTube artifacts)com.github.jagrosh:JLyrics:master-SNAPSHOTChecklist
README.md,reference.conf)