Pringus
Member
Code:
event.on('chat', function (ev) {
var cmdTxt = ev.text.split(" ");
engine.log(cmdTxt[0]);
engine.log(cmdTxt[1]);
if (cmdTxt[0] === ".yt") {
ev.client.chat("Downloading " + cmdTxt[1]);
sinusbot.ytdl("https://www.youtube.com/watch?v=srFLo-WShf4", true);
}
});
Here's the code I've got, and nothing is being downloaded. I've tried using media.ytdl as well as sinusbot.ytdl.
All the debug messages are going through fine, and the regular !yt command works as well. So the code is working, and YT-DL is installed correctly.
Any ideas?