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

Doesnt persist? #6

Closed jamesstanleystewart closed 8 years ago

jamesstanleystewart commented 8 years ago

Hey, this idea is awesome, currently when i get everything installed and run it, it executes like a command but does not create the persistent bot, is this just the state of the bot thus far, or am i doing something wrong?

dragsta commented 8 years ago

Does the bot pop up in your discord chat?

jamesstanleystewart commented 8 years ago

I realized i was using the current repo not the npm release

jamesstanleystewart commented 8 years ago

Do you know what commands to use by any chance?

Guichaguri commented 8 years ago

Both of them are not stable yet. I'm working on it and in about one week it should be stable.

jamesstanleystewart commented 8 years ago

Ive managed to get my bot to join voice and stuff, are there semi working commands that i can try use?

dragsta commented 8 years ago

Fridgenz Ive had the same problem i can't figure out any commands nor how to make them :/

jamesstanleystewart commented 8 years ago

I can see that theyre registered to the bot, but dont know how to call them in chat

Guichaguri commented 8 years ago

I'm recoding the core functionality, the recode is almost done, that's why it's not usable yet

jamesstanleystewart commented 8 years ago

Ok sweet, i found !add on the old version, but i get errors, i guess ill wait for a week or so

Guichaguri commented 8 years ago

Idk which version, but it should work something like !add [youtube video url]

jamesstanleystewart commented 8 years ago

the version on npm

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn help ENOENT
    at exports._errnoException (util.js:855:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:455:9)
    at process._tickCallback (node.js:369:17)

Get this when adding a youtube video to queue

dragsta commented 8 years ago

What does you prompt do after you load the bot? cause mine just sits there without giving any messages or anything. It does load into the voice chat on discord though.

Guichaguri commented 8 years ago

its a pretty old version on npm, I will update it once I make it work again

jamesstanleystewart commented 8 years ago

@dragsta same, but typing !add [youtubelink] into a discord channel crashes the bot

dragsta commented 8 years ago

Hmm ok cool can't wait to see this fully working I'd offer to help but I'm not very versed in coding so it would probably be a setback not a help :)

ripcrispy commented 8 years ago

Hello @Guichaguri any updates on this issue by chance? I'm experiencing the same problems.

My errors appear like so:

YoutubeVideo { domain: null, _events: { 'data-changed': [Function] }, _eventsCount: 1, _maxListeners: undefined, user: { [String: '135743690315399168'] id: [Getter], username: [Getter], discriminator: [Getter], avatar: [Getter] }, video: 'http://www.youtube.com/watch?v=xSVJbzt0IUE', title: 'http://www.youtube.com/watch?v=xSVJbzt0IUE', url: null, dataLoaded: false } [object Object] internal/child_process.js:274 var err = this._handle.spawn(options); ^

TypeError: Bad argument at TypeError (native) at ChildProcess.spawn (internal/child_process.js:274:26) at Object.exports.spawn (child_process.js:362:9) at InternalDJ.encodeStream (C:\DiscordDJ-master\lib\Logic\InternalDJ.js:52:38) at InternalDJ. (C:\DiscordDJ-master\lib\Logic\InternalDJ.js:114:32) at YoutubeVideo.createStream (C:\DiscordDJ-master\lib\Audio\YoutubeVideo.js:51:9) at InternalDJ.play (C:\DiscordDJ-master\lib\Logic\InternalDJ.js:111:18) at InternalDJ.addToQueue (C:\DiscordDJ-master\lib\Logic\InternalDJ.js:157:18) at DJ.addToQueue (C:\DiscordDJ-master\lib\Logic\DJ.js:27:17) at Object.pmHandler as run

Guichaguri commented 8 years ago

Have you installed FFmpeg?

ripcrispy commented 8 years ago

Yeah, I've installed FFmpeg, I'm currently using version: git-42c54d4 (2016-01-10) x64.

EDIT: Nevermind, I added it to the Env Vars. Sorry for wasting your time.

Guichaguri commented 8 years ago

The first development build was released.