plugbotapi
plugbotapi copied to clipboard
New Plug Version Breaks API
I know it hasn't been updated yet but I figured I'd get a convo going. :)
My error is "TypeError: Cannot read property 'attribs' of undefined" in the plug-dj-login/index.js file on line 79
On it!
Haha take your time bro - I know this is totally knew I just figured I'd start a convo.
Seriously if you have a paypal donate button anywhere let me know - can't thank you enough for being on top of this API the way you are man.
Blessings! Good luck!
Yeah, everything he said :)
Indeed! Y'all are great. Regardless of what the trolls say. ;)
Hahaha.
So happy atomjack's API is so widely used with some other humorous devs. I'm the bot dev behind reggae-for-all-2 if anyone else is wondering.
While atom's plugging away - what are y'all's rooms that you maintain the bots for?
my username is webdevbrian (spoiler alert!)
Also - @atomjack I'm not kidding about the donate link if you have one bro. :) :thumbsup:
cowgod bot in Pit of No Shame (not open source)
lol thanks @webdevbrian my paypal is atomjack at gmail :)
Paste this somewhere bro (setup a github.io page for the API and slap this on it)
http://d.pr/n/aQXH/2OyVhW2u
Just sent $50 - thanks man!
Dayum! Thanks guys!
Ugh. Back in maintenance mode.
LOL just noticed that myself
The new site is not playing nice with phantomjs. It seems to get stuck at the little spinner thing. No matter how long I wait it doesn't get beyond that.
That's the anti-DoS service they added I think.
I'm able to get phantomjs to at least render the main page with a basic test script. Are you saying you can't even get that far?
var page = require('webpage').create();
page.open('https://plug.dj/', function() {
page.render('example.png');
phantom.exit();
});
That gives me a good-looking example.png
Oh, I see they moved the spinner thing to room join, so my test doesn't really involve it.
Yeah, I logged in manually then copied some of the cookies and had phantom add them before calling the page to load a room, but it just hangs at the spinner.
I've been getting either the script hanging silently on connect or giving this error then hanging, if it helps. I use FB to authenticate, and I haven't updated the cookie yet because I can't find the old usr cookie.
debug: The "fb-root" div has not been created, auto-creating
hmmmmm
How pessimistic should I be? I'm contemplating just accepting defeat and restructuring my code to be a browser-based bot. Would be a total pain because I'm doing all sorts of other node-ly things with a database back end, but it's not completely infeasible.
I'm totally waiting out for this API. I have hundreds of hours invested in my room bot, and like you said - I have a huge database backend that I just can't give up.
Beliieevvveeeee
My thought was that I could migrate to bot-based and just create a REST API to get to my database. Wouldn't be /too/ awful, but it's definitely tens of hours of work and then I've got to keep a browser up and running in a VM for the bot, which is a lot less handy than running inside screen.
I've been in touch with someone at Plug, and he said they appreciate the thought and creativity that has gone into creating bots on the service. I've also asked him to ask the developers for some information on what they are using for the initial loading of a room (i.e. what is going on in the background when the spinner shows up as well as the "plugging you in" thing, before the room actually loads). I'm hoping we can get the name(s) of the technologies being used so that we can figure out how to get phantomjs to play nicely with it. He said they are pretty busy with stability issues (which I completely understand) but he said he would run my questions by them sometime this week. I'll keep you all posted.
You're the man Chris.
Yeah, they seem more than a little bit overwhelmed right now. Nice to hear that there's a discussion, that goes a long way towards my patience. Thanks, Chris!
I can't shake the feeling that if they haven't answered yet, they're probably not going to. We know they don't really like Node.JS bots for whatever reason, that's why the project switched over to PhantomJS in the first place... Maybe I'm just paranoid.
I have faith in Chris - dude's pretty good with phantom. Obviously the only thing that stinks is just waiting for the api to be updated.
but - since I have so much work tied up with using this API it doesn't make any sense starting from scratch anymore. I just wish there was more I could do from my end!
Oh, me too, I didn't mean to suggest otherwise - I just don't have faith in Plug's willingness to help out on this one. I just get the very strong feeling this has to be done without their assistance.
Haha no I totally agree with you. That's why I created spinit.fm. In the meantime though - I'll be using their service to create better one. Huzzah :)
Just a little update. I did hear back from my contact at plug although haven't quite gotten any information yet. I elaborated on what info I need from the developers so hopefully I'll hear back soon.