Quality added

This commit is contained in:
killer069
2021-09-24 12:49:39 +05:30
parent be840ce18b
commit f304d6bcbd
8 changed files with 92 additions and 88 deletions

View File

@@ -17,13 +17,13 @@ client.on('messageCreate', async message => {
})
let args = message.content.split('play ')[1].split(' ')[0]
let stream = await play.stream(args, COOKIE)
let stream = await play.stream(args, { cookie : COOKIE })
/*
OR if you want to get info about youtube link and then stream it
let yt_info = await play.video_info(args, COOKIE)
let yt_info = await play.video_info(args, { cookie : COOKIE })
console.log(yt_info.video_details.title)
let stream = await play.stream_from_info(yt_info, COOKIE)
let stream = await play.stream_from_info(yt_info, { cookie : COOKIE })
*/
let resource = createAudioResource(stream.stream, {