scrumdod/vso-hubotscripts — pull request #2 by bfcamara (2014-06-19 17:23:25+00:00)
Title: Fix reinject message issue: do not add Hubot as dependency

Removed the Hubot as a dependency since when doing

`{TextMessage} = require 'hubot'`

we got a different one different from one that is loaded, therefore listeners fail to work (somewhere there is a check `if message instanceof TextMessage` that fails when TextMessage is loaded from another location.)

(http://stackoverflow.com/questions/21707472/why-does-require-give-me-a-new-copy-of-a-module-when-loaded-from-a-different-l)

Thanks to @spajus figuring out the problem