-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hubot-idobata can't response to message #1
Comments
ただしhubot-idobataにIssueあり idobata/hubot-idobata#1
Thanks for your report @vvakame 😄 This issue is related with the followings things:
So far, I think that it is difficult to resolve this issue on hubot-idobata.
Could you try this way? issue のご報告ありがとうございます! どうやら、hubot での そこで私は以下のように、 ローカルパスを指定してhubot-idobata をインストールすることにしています:
お手数ですが、この方法で上手くいくかご確認いただけますでしょうか...? |
I added development section to README.md by #2. @vvakame ひとまず、インストールについての注意点を README.md に記載してみました #2 ご報告いただき & hubot-idobata をお試しいただきありがとうございます! |
@tricknotes Thank you for letting me know! ありがとうございます! |
Hi, I just setup hubot-idobata as [README.md#setup](mentioned in https://github.com/idobata/hubot-idobata#setup). However, doesn't work properly instead of run command BTW, referring to the Hipchat adapter implementation, isn't it better to specify like READMEのsetupにしたがって設定してみましたが、動きませんでした。 ところで、Hipchat adapterを参照してみたところ |
`npm` loads the different hubot from the following: * `./node_modules/hubot` * `./node_modules/hubot-idobata/node_modules/hubot` This cause instance mismatch using `instanceof` * https://github.com/github/hubot/blob/v2.7.2/src/listener.coffee#L42 That's only `./node_modules/hubot` we need. If `./node_modules/hubot-idobata/node_modules/hubot` is exist, hubot-idobata wouldn't respond any message. Fix #1
Thanks @cynipe This issue is fixed by #5 and I released new version. @cynipe ありがとうございます! bot 上で試したところ よろしければ、お試しいただけますでしょうか…? |
@tricknotes LGTM 😄 👍 Thanks!! 正常に動くこと確認できました! |
https://github.com/github/hubot/blob/master/src/listener.coffee#L42
https://github.com/idobata/hubot-idobata/blob/master/src/idobata.coffee#L60
Hubot.TextMessage is not point to same function.
https://github.com/idobata/hubot-idobata/blob/master/src/idobata.coffee#L5
hubot-idobata reference to hubot-idobata's local hubot package.
adhoc patch
Hubot = require('hubot')
toHubot = require('../../../')
すみません英語苦手なので日本語で書きます。
idobataアダプタが作っているHubot.TextMessageはhubot-idobataが参照しているhubotを指すため、 https://github.com/github/hubot/blob/master/src/listener.coffee#L42 のinstanceof でfalseになります。
これは https://github.com/github/hubot/ を clone してpackage.jsonを編集して使うと発生します。
The text was updated successfully, but these errors were encountered: