clux / cleverbot-irc

An IRC bot that defers to Cleverbot.
MIT License
11 stars 11 forks source link

Error 403 #5

Closed Akulen closed 10 years ago

Akulen commented 10 years ago

I installed clvrbot and launched it on the freenode irc However, it's alway responding Error: 403. Do you know why ?

clux commented 10 years ago

Hey, it was having some issues the last two weeks as well. The module cleverbot-irc is using is just a wrapper around the web scraper cleverbot-node. There was a bit of a cat and mouse game (#1) between operators of the cleverbot website and that module trying to pretend they really were the website trying to use their API without paying, but 403 indicates they may have fixed it.

Essentially the bot may be broken for a while if this is the case.

clux commented 10 years ago

Okay, someone has found a fix for it. I'll publish once the dependency is updated, but for now you can update package json to rely on the fork with the fix:

diff --git a/package.json b/package.json
index f350b93..7a83666 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
     "dye": "~0.2.0",
     "gu": "~0.3.0",
     "irc-stream": "~0.0.7",
-    "cleverbot-node": "~0.1.2",
+    "cleverbot-node": "bluesatin/cleverbot-node",
     "suncalc": "~1.2.1",
     "irc-colors": "~1.0.3",
     "confortable": "~0.2.1"

then npm install

bluesatin commented 10 years ago

I think the update is now put on NPM, so I don't think the 403 error should be an issue any more.

clux commented 10 years ago

Thanks for the update, been using the fork for the last two weeks and forgot about this issue :] cleverbot-irc@0.3.1 has the fix.