Open technicalpickles opened 8 years ago
In #hubot, @arnaudmm was trying to use thenotice method like:
notice
robot.hear /^!toto$/, (msg) -> robot.adapter.notice "#systest2", "tototo"
This didn't work because the first argument is an envelope object that should have a user or room. This does work:
envelope
robot.hear /^!toto$/, (msg) -> robot.adapter.notice {room:"#systest2"}, "tototo"
cc https://github.com/github/hubot/issues/1036 for more general conversation around supporting adapter-specific responses.
In #hubot, @arnaudmm was trying to use the
notice
method like:This didn't work because the first argument is an
envelope
object that should have a user or room. This does work: