fix: Added variables for node process args and YouTube cookie to .env file

This commit is contained in:
Marius Begby committed 2023-07-13 18:28:56 +02:00
1 parent c119c10483
commit 2df30c5d5f
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -3,3 +3,6 @@ MINIMUM_LOG_LEVEL=debug
MINIMUM_LOG_LEVEL_CONSOLE=info
DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN
DISCORD_CLIENT_ID=YOUR_DISCOR_BOT_CLIENT_ID
UV_THREADPOOL_SIZE=4
NODE_OPTIONS=
YOUTUBE_COOKIE=
+2 -1
View File
@@ -44,7 +44,8 @@ onBeforeCreateStream(async (track) => {
await stream(track.url, {
type: 'audio',
quality: 'high',
highWaterMark: 1 << 25
highWaterMark: 1 << 25,
cookie: process.env.YOUTUBE_COOKIE || ''
})
).stream;
}