From f2a14736056e8a6f6900bf944f1ab3dd8153e0c7 Mon Sep 17 00:00:00 2001 From: Nibor <156368035+infnibor@users.noreply.github.com> Date: Thu, 9 May 2024 16:08:53 +0200 Subject: [PATCH 1/4] Update .env.example Auto_Node comment link corrected Signed-off-by: Nibor <156368035+infnibor@users.noreply.github.com> --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 9188c6346..653d3602b 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,7 @@ BOT_ACTIVITY= "Lavamusic" # Your bot activity DATABASE_URL= "" # Your database url(If you want to use sqlite, then you can leave it blank.). -AUTO_NODE="false" # true for auto node. It is gave from lavainfo-api(https://lavainfo-api.freedback-dip.workers.dev). +AUTO_NODE="false" # true for auto node. It is gave from lavainfo-api(https://https://lavainfo-api.deno.dev). LAVALINK_URL="localhost:2333" # Your Lavalink url(If auto node is true, then you can leave it blank) From f64d1c6a927c314751f0ab988a1c61132b9a59f3 Mon Sep 17 00:00:00 2001 From: infnibor <156368035+infnibor@users.noreply.github.com> Date: Thu, 9 May 2024 16:11:12 +0200 Subject: [PATCH 2/4] Revert "Update .env.example" This reverts commit f2a14736056e8a6f6900bf944f1ab3dd8153e0c7. --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 653d3602b..9188c6346 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,7 @@ BOT_ACTIVITY= "Lavamusic" # Your bot activity DATABASE_URL= "" # Your database url(If you want to use sqlite, then you can leave it blank.). -AUTO_NODE="false" # true for auto node. It is gave from lavainfo-api(https://https://lavainfo-api.deno.dev). +AUTO_NODE="false" # true for auto node. It is gave from lavainfo-api(https://lavainfo-api.freedback-dip.workers.dev). LAVALINK_URL="localhost:2333" # Your Lavalink url(If auto node is true, then you can leave it blank) From accdc43584b5b3f9a82fe0f39857f185df7b7621 Mon Sep 17 00:00:00 2001 From: Nibor <156368035+infnibor@users.noreply.github.com> Date: Thu, 9 May 2024 16:13:10 +0200 Subject: [PATCH 3/4] Update .env.example - Auto_Node comment link corrected - Small cosmetic changes Signed-off-by: Nibor <156368035+infnibor@users.noreply.github.com> --- .env.example | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 9188c6346..da41ad040 100644 --- a/.env.example +++ b/.env.example @@ -1,34 +1,34 @@ TOKEN="" # Your bot token. -CLIENT_ID="" # Your bot's client ID(If this value is left blank, bots cannot be invited using /invite or /about commands.). +CLIENT_ID="" # Your bot's client ID (If this value is left blank, bots cannot be invited using /invite or /about commands.). PREFIX= "!" # Your prefix. -OWNER_IDS=["",""] # Your discord id(You can add multiple ids.). +OWNER_IDS=["",""] # Your discord id (You can add multiple ids.). -GUILD_ID= "" # Your server ID(If you want to use the for single server). +GUILD_ID= "" # Your server ID (If you want to use the for single server). PRODUCTION="true" # true for production. -BOT_STATUS= "online" # Your bot status(online, dnd, idle, invisible or offline). +BOT_STATUS= "online" # Your bot status (online, dnd, idle, invisible or offline). BOT_ACTIVITY_TYPE=0 # Activity type is a number from 0 to 5. See more here: https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types BOT_ACTIVITY= "Lavamusic" # Your bot activity -DATABASE_URL= "" # Your database url(If you want to use sqlite, then you can leave it blank.). +DATABASE_URL= "" # Your database url (If you want to use sqlite, then you can leave it blank.). -AUTO_NODE="false" # true for auto node. It is gave from lavainfo-api(https://lavainfo-api.freedback-dip.workers.dev). +AUTO_NODE="false" # true for auto node. It is gave from lavainfo-api (https://lavainfo-api.deno.dev). -LAVALINK_URL="localhost:2333" # Your Lavalink url(If auto node is true, then you can leave it blank) +LAVALINK_URL="localhost:2333" # Your Lavalink url (If auto node is true, then you can leave it blank) -LAVALINK_AUTH="youshallnotpass" # Your Lavalink password(If auto node is true, then you can leave it blank.). +LAVALINK_AUTH="youshallnotpass" # Your Lavalink password (If auto node is true, then you can leave it blank.). -LAVALINK_NAME="Lavamusic" # Your Lavalink name(If auto node is true, then you can leave it blank.). +LAVALINK_NAME="Lavamusic" # Your Lavalink name (If auto node is true, then you can leave it blank.). -LAVALINK_SECURE= "false" # true for secure Lavalink(If auto node is true, then you can leave it blank.). +LAVALINK_SECURE= "false" # true for secure Lavalink (If auto node is true, then you can leave it blank.). -SEARCH_ENGINE= "ytsearch" # ytsearch(YouTube Search), spsearch(Spotify Search), scsearch(SoundCloud Search) or ytmsearch(YouTube Music Search). +SEARCH_ENGINE= "ytsearch" # ytsearch (YouTube Search), spsearch (Spotify Search), scsearch (SoundCloud Search) or ytmsearch (YouTube Music Search). MAX_PLAYLIST_SIZE= "100" # Max playlist size. From e216ee096055ea872db64a855c855e50f40aa872 Mon Sep 17 00:00:00 2001 From: Nibor <156368035+infnibor@users.noreply.github.com> Date: Thu, 9 May 2024 16:27:42 +0200 Subject: [PATCH 4/4] Update example.application.yml - Adjusted the configuration of the youtubesource-plugin to the latest version (new release 1.0.2). - Commented out `youtube config` - this has been replaced in this client with `TVHTML5EMBEDDED` (This client is useful for playing age-restricted tracks. Do keep in mind that, even with this client enabled, age-restricted tracks are not guaranteed to play.). The plugin's author himself recommends doing this, as support for account authentication has been removed. - Fixed character errors in the `plugins` tab. Signed-off-by: Nibor <156368035+infnibor@users.noreply.github.com> --- Lavalink/example.application.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Lavalink/example.application.yml b/Lavalink/example.application.yml index 18fcc227f..e63d27088 100644 --- a/Lavalink/example.application.yml +++ b/Lavalink/example.application.yml @@ -3,9 +3,14 @@ server: # REST and WS server address: 0.0.0.0 plugins: youtube: - clients: ["MUSIC", "ANDROID", "WEB"] + enabled: true # Whether this source can be used. + 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. countryCode: "US" # the country code you want to use for searching lyrics via ISRC. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 - enabled: true + # The clients to use for track loading. See below for a list of valid clients. + # Clients are queried in the order they are given (left-to-right) + clients: ["MUSIC", "ANDROID", "WEB", "TVHTML5EMBEDDED"] lavasrc: providers: # Custom providers for track loading. This is the default - 'ytsearch:"%ISRC%"' @@ -65,17 +70,17 @@ lavalink: - dependency: 'com.github.topi314.lavasrc:lavasrc-plugin:4.1.0' repository: 'https://maven.lavalink.dev/releases' snapshot: false - - dependency: "com.github.topi314.lavasearch:lavasearch-plugin:1.0.0" - repository: "https://maven.lavalink.dev/releases" # this is optional for lavalink v4.0.0-beta.5 or greater + - dependency: 'com.github.topi314.lavasearch:lavasearch-plugin:1.0.0' + repository: 'https://maven.lavalink.dev/releases' # this is optional for lavalink v4.0.0-beta.5 or greater snapshot: false # set to true if you want to use snapshot builds (see below) - dependency: 'com.github.topi314.sponsorblock:sponsorblock-plugin:3.0.0' repository: 'https://maven.lavalink.dev/releases' # this is optional for lavalink v4.0.0-beta.5 or greater snapshot: false - - dependency: com.dunctebot:skybot-lavalink-plugin:1.7.0 - repository: https://maven.lavalink.dev/releases + - dependency: 'com.dunctebot:skybot-lavalink-plugin:1.7.0' + repository: 'https://maven.lavalink.dev/releases' snapshot: false - - dependency: dev.lavalink.youtube:youtube-plugin:1.1.0 - repository: https://maven.lavalink.dev/releases + - dependency: 'dev.lavalink.youtube:youtube-plugin:1.2.0' + repository: 'https://maven.lavalink.dev/releases' snapshot: false pluginsDir: './plugins' @@ -118,9 +123,9 @@ lavalink: #strategy: "RotateOnBan" # RotateOnBan | LoadBalance | NanoSwitch | RotatingNanoSwitch #searchTriggersFail: true # Whether a search 429 should trigger marking the ip as failing #retryLimit: -1 # -1 = use default lavaplayer value | 0 = infinity | >0 = retry will happen this numbers times - youtubeConfig: # Required for avoiding all age restrictions by YouTube, some restricted videos still can be played without. - email: "" # Email of Google account - password: "" # Password of Google account + #youtubeConfig: # Required for avoiding all age restrictions by YouTube, some restricted videos still can be played without. + #email: "" # Email of Google account + #password: "" # Password of Google account #httpConfig: # Useful for blocking bad-actors from ip-grabbing your music node and attacking it, this way only the http proxy will be attacked #proxyHost: "localhost" # Hostname of the proxy, (ip or domain) #proxyPort: 3128 # Proxy port, 3128 is the default for squidProxy