mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
feat: changed yt cookie name in .env arguments
This commit is contained in:
1 parent
e251299c0c
commit
e3b945bcec
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user