diff --git a/.env.example b/.env.example index 58d950fff..5a900e626 100644 --- a/.env.example +++ b/.env.example @@ -1,39 +1,39 @@ -TOKEN="" # Your bot token. +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. +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. +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_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 +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. +MAX_PLAYLIST_SIZE = "100" # Max playlist size. -MAX_QUEUE_SIZE="100" # Max queue size. +MAX_QUEUE_SIZE = "100" # Max queue size. -KEEP_ALIVE="false" # true for keep alive in https://replit.com +KEEP_ALIVE = "false" # true for keep alive in https://replit.com -LOG_CHANNEL_ID="" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel. +LOG_CHANNEL_ID = "" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel. 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