Node-ytdl-core: discord.js bot not playing audio

Created on 13 Mar 2020  路  1Comment  路  Source: fent/node-ytdl-core

My code: https://hastebin.com/varigayufo.js
The bot joins the voice channel and leaves triggering the songStream.on("end") function as if the audio was done playing and I'm not sure why this happens. The issue is not the search function as I have tested it with a plain URL and it didn't work either. I have also tested various videos and therefore concluded the issue isn't a specific video either. Any idea what could be happening?

support

Most helpful comment

the call to ytdl-core is a string 馃

let songUrl = "YTDL(\"https://www.youtube.com/watch?v=" + video.id + "\", { filter: \'audioonly\' })";

>All comments

the call to ytdl-core is a string 馃

let songUrl = "YTDL(\"https://www.youtube.com/watch?v=" + video.id + "\", { filter: \'audioonly\' })";
Was this page helpful?
0 / 5 - 0 ratings

Related issues

NeuronButter picture NeuronButter  路  6Comments

cloudrac3r picture cloudrac3r  路  5Comments

arcovoltaico picture arcovoltaico  路  6Comments

Asaduji picture Asaduji  路  6Comments

FireController1847 picture FireController1847  路  5Comments