SoundRain icon indicating copy to clipboard operation
SoundRain copied to clipboard

[ERROR] Nonfunctional?

Open NNickey opened this issue 9 years ago • 2 comments

image image

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)

NNickey avatar Nov 10 '15 03:11 NNickey

I'm getting the same error here. The dev doesn't seem to be active on this module anymore. :(

110Percent avatar Jun 04 '16 01:06 110Percent

Sorry guys. It looks like this method simply doesn't work now. If someone has a better idea I am happy to implement it.

jbrooksuk avatar Jun 04 '16 13:06 jbrooksuk