From 1efd6eacf12d30c5a284d9a55e1e515b63ee46d0 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Tue, 7 Sep 2021 13:04:47 +0530 Subject: [PATCH] updated YouTube cookies example --- examples/YouTube/play - cookies.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/YouTube/play - cookies.js b/examples/YouTube/play - cookies.js index d1be96d..4500485 100644 --- a/examples/YouTube/play - cookies.js +++ b/examples/YouTube/play - cookies.js @@ -17,17 +17,13 @@ client.on('messageCreate', async message => { }) let args = message.content.split('play ')[1].split(' ')[0] - let stream = await play.stream(args, { - cookie : COOKIE - }) + let stream = await play.stream(args, COOKIE) /* OR if you want to get info about youtube link and then stream it - let yt_info = await play.video_info(args, { - cookie : COOKIE - }) + let yt_info = await play.video_info(args, COOKIE) console.log(yt_info.video_details.title) - let stream = await play.stream_from_info(yt_info) + let stream = await play.stream_from_info(yt_info, COOKIE) */ let resource = createAudioResource(stream.stream, {