hubot-twitter
hubot-twitter copied to clipboard
TypeError at run hubot
When I run hubot command, I got type error.
$ bin/hubot -a twitter -n TWITTER_USERNAME
ERROR Cannot load adapter twitter - TypeError: Object #<Object> has no method 'robot'
TypeError: Object #<Object> has no method 'robot'
at Object.<anonymous> (hubot/node_modules/hubot-twitter/src/twitter.coffee:7:28)
at Object.<anonymous> (hubot/node_modules/hubot-twitter/src/twitter.coffee:169:4)
And I've already read this: https://github.com/MathildeLemee/hubot-twitter/blob/master/README.md
I've tried
to install bundle:
npm install
to add this into dependencies on package.json:
"hubot-twitter": ">= 2.0.4",
"hubot": ">= 2.0.0"
to add variables on Heroku
% heroku config:add HUBOT_TWITTER_KEY="..."
% heroku config:add HUBOT_TWITTER_SECRET="..."
% heroku config:add HUBOT_TWITTER_TOKEN="..."
% heroku config:add HUBOT_TWITTER_TOKEN_SECRET="..."
Is that means hubot of the latest version is not compatible hubot-twitter?
this is the same problem. https://github.com/MathildeLemee/hubot-twitter/issues/8
This should fix it: https://github.com/MathildeLemee/hubot-twitter/pull/10
+1. #10 doesn't fix this problem.
Same error :-(
It seems that npm isn't installing the latest version. Try to download this repo manually and replace the old files with the ones you downloaded.
See https://github.com/MathildeLemee/hubot-twitter/issues/13