Description
directMention() middleware matches only when a bot user is mentioned as the first person in a message. This is because the middleware was designed to be compatible with Hubot's robot.respond() functionality.
Also, Slapp (the ancestor of Bolt for JS) defines "direct mention" as being mentioned at the start of a message while "mention" means being mentioned anywhere in a message.
With full respect for the original meaning of "direct mention" in Slapp, I propose to add built-in mention() middleware to Bolt for JS. I'll be working on this sometime soon, but if anyone is interested in implementing this, any contribution is welcome!
What type of issue is this? (place an x in one of the [ ])
Requirements (place an x in each of the [ ])
Description
directMention()middleware matches only when a bot user is mentioned as the first person in a message. This is because the middleware was designed to be compatible with Hubot's robot.respond() functionality.Also, Slapp (the ancestor of Bolt for JS) defines "direct mention" as being mentioned at the start of a message while "mention" means being mentioned anywhere in a message.
With full respect for the original meaning of "direct mention" in Slapp, I propose to add built-in
mention()middleware to Bolt for JS. I'll be working on this sometime soon, but if anyone is interested in implementing this, any contribution is welcome!What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])