will icon indicating copy to clipboard operation
will copied to clipboard

will_is_mentioned is not set if message begins with mention handle

Open dawn-minion opened this issue 6 years ago • 0 comments

We're trying to develop a command for our HipChat bot that can be executed anywhere in a message.

For example, both of these should be acceptable to trigger the command:

(at)Chatbot deploy production Lets go ahead and deploy (at)Chatbot deploy production

Since @respond_to was limited to messages beginning with the chatbot's handle, we used @hear. We expected will_is_mentioned to be set for both instances - Since both messages mention Will - but, if a message begins with the chatbot's handle, is_direct is set to True, otherwise will_is_mentioned is set. Both times Will was mentioned, so, the flag should reflect that.

dawn-minion avatar Jul 30 '18 13:07 dawn-minion