Error: No video id found
I'm using your script for a music feature on my bot and when you use the add command and put text that isn't a video id / url, it crashes the bot with the error Error: No video id found
i am going to add side file copy of server.js with usage of my API for Youtube searching and better stuff handling to fix all problems users are getting
That sounds like yt-dl has changed something. Any error should be passed in the callback as err, not thrown as a new Error().
yt.getInfo(url, (err, info) => {
if(err) return msg.channel.sendMessage('Invalid YouTube Link: ' + err);
As you stated though, you modified the script to work in your bot as a music feature, so I can't ensure that you kept the error handling as that.
I did keep that error handling with ytdl, but the video ID error occurs whenever I don't give a video ID or URL.
better version is being worked on and status can be found in #9