feat: changed yt cookie name in .env arguments

This commit is contained in:
Marius Begby committed 2023-07-19 22:00:15 +02:00
1 parent e251299c0c
commit e3b945bcec
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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;
}