diff --git a/.env.example b/.env.example index 3c7feaa..b6ee260 100644 --- a/.env.example +++ b/.env.example @@ -10,7 +10,7 @@ DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN DISCORD_APPLICATION_ID=YOUR_DISCORD_BOT_APPLICATION_ID # Optional: Set a YouTube cookie to reduce the chance of getting rate limited / 429 Too Many Requests -YOUTUBE_COOKIE= +YT_COOKIE= # Optional: Authentication tokens for botlist websites to automatically update server count, etc. # See /src/utils/postBotStats.js for more information diff --git a/src/utils/factory/createPlayer.js b/src/utils/factory/createPlayer.js index 2e72d26..bde8841 100644 --- a/src/utils/factory/createPlayer.js +++ b/src/utils/factory/createPlayer.js @@ -13,7 +13,7 @@ exports.createPlayer = async (client) => { highWaterMark: 1 << 25, requestOptions: { headers: { - cookie: process.env.YOUTUBE_COOKIE || '' + cookie: process.env.YT_COOKIE || '' } } } @@ -26,7 +26,7 @@ exports.createPlayer = async (client) => { type: 'audio', quality: 'high', highWaterMark: 1 << 25, - cookie: process.env.YOUTUBE_COOKIE || '' + cookie: process.env.YT_COOKIE || '' }) ).stream; }