Guichaguri / DiscordDJ

Discord DJ Bot. Play music in your server. Inspired by PlugDJ
http://guichaguri.github.io/DiscordDJ/
GNU Lesser General Public License v2.1
199 stars 50 forks source link

read ECONNRESET #22

Open KNGRSM opened 8 years ago

KNGRSM commented 8 years ago

{ [String: '97049313879797760'] id: [Getter], username: [Getter], discriminator: [Getter], avatar: [Getter], guild_id: [Getter], roles: [Getter], mute: [Getter], deaf: [Getter], joined_at: [Getter] } events.js:141 throw er; // Unhandled 'error' event ^

Error: read ECONNRESET at exports._errnoException (util.js:870:11) at Pipe.onread (net.js:544:26)

trying to /yt /youtube a youtube link results in this error. can you provide any help on this please?

Guichaguri commented 8 years ago

I will look into this. For now, use /add instead. Works pretty much the same way

KNGRSM commented 8 years ago

the same problem occurs using /add or !add

Guichaguri commented 8 years ago

Can you send me the npm-debug.log file that was generated by this crash?

KNGRSM commented 8 years ago

debug.log:

http://pastebin.com/xRniakcg

KNGRSM commented 8 years ago

does this help?

Guichaguri commented 8 years ago

I think it's something to do with the encoder. Try playing a file !file [path]

ShiftBladez commented 8 years ago

same things occurs

Guichaguri commented 8 years ago

You specified the wrong path for the encoder. It will accept any executable file, but only FFmpeg or avconv will work

ShiftBladez commented 8 years ago

screenshot 8

KNGRSM commented 8 years ago

@Guichaguri what do you mean wrong path for the encoder, where do I set up the path to the encoder? All I did was install libav-tools.

Guichaguri commented 8 years ago

I'll make a quick fix, if it doesn't work, it's something to do with Discordie. It seems like the bot is not fully connected to the voice channel.

ShiftBladez commented 8 years ago

this is more of a point i wanna make if you look at the log for the update ptb, i dont what they did but i believe from what it says they made it easier to use music bots, maybe it maybe helpful for your bot ?

Guichaguri commented 8 years ago

I can't find it. I know they were implementing configurable bit rates, that would help music bots on better audio quality. I'm still waiting for this feature to implement compatibility in DiscordDJ. Until that, i'm working on making it stable and easy to use. (also, a clean code is always a good idea)

ShiftBladez commented 8 years ago

oh ok