chore(lavalink): Add YouTube plugin in application.yml to fix deprecation error

This commit is contained in:
Jose Daniel G. Percy 2025-04-24 00:14:42 +08:00
parent 537a8c6709
commit 42de01e004

View File

@ -1,7 +1,7 @@
server:
port: 2333
address: 0.0.0.0
password: ${LAVALINK_SERVER_PASSWORD:testing-lavalink-dont-touch} # Changed to use LAVALINK_SERVER_PASSWORD env var
password: ${LAVALINK_PASSWORD:changeme} # Uses env var or defaults to 'changeme'
logging:
level:
@ -11,7 +11,18 @@ logging:
lavalink:
server:
sources:
youtube: true
youtube:
enabled: true
allowSearch: true # Whether "ytsearch:" and "ytmsearch:" can be used.
allowDirectVideoIds: true # Whether just video IDs can match. If false, only complete URLs will be loaded.
allowDirectPlaylistIds: true # Whether just playlist IDs can match. If false, only complete URLs will be loaded.
# The clients to use for track loading. See below for a list of valid clients.
# Clients are queried in the order they are given (so the first client is queried first and so on...)
clients:
- MUSIC
- ANDROID_VR
- WEB
- WEBEMBEDDED
bandcamp: true
soundcloud: true
twitch: true
@ -22,10 +33,5 @@ lavalink:
bufferDurationMs: 400
frameBufferDurationMs: 5000
gc-warnings: true
plugins: []
# Add specific IPs allowed to connect (your bot container)
# Set as 0.0.0.0/0 to allow connections from anywhere (not recommended for production)
# This is important for Docker environments
server.ip-rotation: false
server.ip-blocks: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "127.0.0.1", "0.0.0.0/0"]
plugins:
- dependency: "dev.lavalink.youtube:youtube-plugin:1.12.0" # Use the new YouTube source plugin