hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.66k stars 3.75k forks source link

fix: is not a function in CatchAll listener #1720

Closed joeyguerra closed 7 months ago

joeyguerra commented 7 months ago

fixes #1721

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 11.1.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

PColuccio commented 7 months ago

@joeyguerra I don't believe the msg.message object will be what you expect in this case though. In the original Hubot they were replacing the msg.message with msg.message.message although I haven't dug in to find the reason.

joeyguerra commented 7 months ago

msg is a response. msg.message is an instance of CatchAllMessage. msg.message.message is an instance of TextMessage. Do you think you can try it? I assume you were getting errors in your code, and that led you to submitting a fix?