hubot-twitter icon indicating copy to clipboard operation
hubot-twitter copied to clipboard

TypeError at run hubot

Open ikedahidenori opened this issue 12 years ago • 5 comments

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?

ikedahidenori avatar Dec 24 '12 15:12 ikedahidenori

this is the same problem. https://github.com/MathildeLemee/hubot-twitter/issues/8

ikedahidenori avatar Dec 24 '12 16:12 ikedahidenori

This should fix it: https://github.com/MathildeLemee/hubot-twitter/pull/10

pyro2927 avatar Jan 17 '13 04:01 pyro2927

+1. #10 doesn't fix this problem.

tian-im avatar Mar 19 '13 19:03 tian-im

Same error :-(

betzerra avatar Feb 05 '14 04:02 betzerra

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

betzerra avatar Feb 12 '14 21:02 betzerra