Josh Trutwin

Results 7 comments of Josh Trutwin

@ImGrumpy c are to share some of your code please? :)

Thanks - I still can't get my bot to connect in the room so I'm not even able to do this... Not sure why I'm having so many issues....

@ImGrumpy did you figure out how to have the bot chat yet?

Strange, I'm trying: ``` bot.on('ready', function(data) { console.log("Ready to go: ", data); // data contains the currentDJ (by name) and currentTrack (artist and track), and the list of users in...

@atomjack hrm, tried a setTimeout with 10000 - still nothing. Also tried this: ``` bot.on('chat-message', function(data) { console.log("got chat: ", data); if (data.message == ".ping") { bot.chat("pong!"); console.log("pong!"); } });...

@atomjack I added debugs to DubtrackAPI.prototype.chat: ``` DubtrackAPI.prototype.chat = function(msg) { console.log("chat", msg); this.page.evaluate(function(msg) { console.log("evalutate", msg); Dubtrack.room.chat._messageInputEl.val(msg); Dubtrack.room.chat.sendMessage(); }, function() { console.log("function", msg); }, msg); }; ``` any time...

Tried with node 0.10.40 as well - same results. Also tried on a completely different OS, same results again. The PhantomJS tests seem to work fine so I'm not sure...