fojas / cleverbot-node

Cleverbot client in node.js
MIT License
62 stars 33 forks source link

All requests 404 #11

Closed yousefamar closed 9 years ago

yousefamar commented 9 years ago

See here for more info: https://github.com/benmanns/cleverbot/issues/7

Xaekai commented 9 years ago

++

dzek69 commented 9 years ago

i'm not much into github, so no pull request (looks like nobody will merge it anyway), no fork, just a gist with ugly solution: https://gist.github.com/anonymous/e3cdd3bcb02552f002bc

that's all i could do, probably there's better library than built-in http, that can handle cookies automatically

i'd be nice if anyone can create a fork with this solution and then - keep this alive

avatarkava commented 9 years ago

@dzek69 - I don't mind forking and putting in a PR for this, but I'm getting back just when I attempt to use your provided gist. Any ideas?

https://github.com/pillarjs/cookies this might be a good library for use when it comes to the cookies...

dzek69 commented 9 years ago

i forgot to mention - you need to fire prepare() function after creating an object. This could be put in the constructor if anyone wants. I just wanted to make it work, I wasn't caring about proper coding, as this lib isn't proper-coded anyway.

var bot = new Cleverbot();
bot.prepare();
bot.write('aaa');
bot.write('aaa');
bot.write('aaa');
// etc
avatarkava commented 9 years ago

Think I've got this situated in #12 . Thanks for the help @dzek69 !

Jimbo1167 commented 9 years ago

++ on getting this fixed :)

ishan-marikar commented 9 years ago

I think it's an issue with Cleverbot's API. I keep getting 404s when I try to access it directly. Hope this gets fixed. Until then, I guess I'd have to use cleverbot.io. sigh

ishan-marikar commented 9 years ago

This guy seems to have fixed it in pierredavidbelanger/chatter-bot-api#9. I'll try to see if I can get the module working again.

trashken commented 9 years ago

Great to hear this is getting looked at.

fojas commented 9 years ago

I have finally found some time to update the code. The biggest change here is that all code now needs to be passed to Cleverbot.prepare as a callback.