Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
feat: changed yt cookie name in .env arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Jul 19, 2023
1 parent e251299 commit e3b945b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/utils/factory/createPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports.createPlayer = async (client) => {
highWaterMark: 1 << 25,
requestOptions: {
headers: {
cookie: process.env.YOUTUBE_COOKIE || ''
cookie: process.env.YT_COOKIE || ''
}
}
}
Expand All @@ -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;
}
Expand Down

0 comments on commit e3b945b

Please # to comment.