Closed yousefamar closed 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
@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...
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
Think I've got this situated in #12 . Thanks for the help @dzek69 !
++ on getting this fixed :)
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
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.
Great to hear this is getting looked at.
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.
See here for more info: https://github.com/benmanns/cleverbot/issues/7