Closed kdulzo closed 11 years ago
Flowdock adapter extends the hubot adapter class, which sets the @robot in the constructor (https://github.com/github/hubot/blob/master/src/adapter.coffee). Are you setting the name of the robot correctly when starting it? Notice also that the name is case sensitive.
Right, I thought the same thing regarding extending. I'm no js expert, so just stumbled through it. However in troubleshooting by adding some logging, @robot is null in the Flowdock class. So I just tried adding a constructor to Flowdock and it works (see kdulzo/hubot-flowdock@c6d019f0f).
Perhaps there is some other OO foo in JS I'm missing to fix it correctly, but it certainly failed in my case until I made Flowdock have a working @robot.
Can you tell me which versions of hubot and flowdock adapter are you using so we can try to triangulate what's wrong?
This should be resolved by the pull request mentioned above.
return if @robot.name == author.name
robot is never set in the class. I suspect at minimum it needs a constructor (that's how I fixed it for now).