SoundRain
SoundRain copied to clipboard
[ERROR] Nonfunctional?
Code Section
var SoundRain = require('soundrain');
var Song = new SoundRain(messageSplit[1], './soundrain');
sendmsg(channelID,"Downloading Soundcloud link.",5)
Song.on('error', function(err) {
if (err) {
sendmsg(channelID,"Error with link..",4)
throw err;
}
}).on('done', function(file) {
sendmsg(channelID,"Soundcloud passed, streaming audio.",4)
bot.testAudio({
channel: "92733289407725568",
file: file
});
});
sendmsg(channelID,"Attempting SoundCloud Stream",4)
Node.js error
!scstream http://soundcloud.com/jbrooksuk/twisted-beat-sample-at
----------
C:\Users\Administrator\Desktop\DiscordBot\node_modules\soundrain\index.js:66
self.download(self.parse(self.tracks[0]));
^
TypeError: Cannot read property '0' of null
at IncomingMessage.<anonymous> (C:\Users\Administrator\Desktop\DiscordBot\no
de_modules\soundrain\index.js:66:40)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
I'm getting the same error here. The dev doesn't seem to be active on this module anymore. :(
Sorry guys. It looks like this method simply doesn't work now. If someone has a better idea I am happy to implement it.