You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if someone would like to propose an API for optionally matching on an "unformatted" version of the message text, we are open to that. at the moment, we don't have any plans to implement this.
since 4.4.0, rawMessage is available on each message. so if your script listens for all messages, you can inspect that property and do your own matching against it. here's the idea in some code (i haven't actually run this):
robot.listen((message)=>{if(message.rawText){return \somesentencehere\.exec(message.rawText);}returnfalse;},(response)=>{response.reply('matched raw text!');});
aoberoi
changed the title
Strip formatting of incoming messages
Match on raw text instead of formatted text on incoming messages
Mar 30, 2018
This was originally filed at hubotio/hubot#1053 but I believe this to be an adapter specific problem. From @callumacrae:
I suggested this:
The text was updated successfully, but these errors were encountered: