diff --git a/.env.example b/.env.example index 1ba5f03..a8c32bf 100644 --- a/.env.example +++ b/.env.example @@ -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= diff --git a/index.js b/index.js index 66e5161..77c904f 100644 --- a/index.js +++ b/index.js @@ -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; }