will
will copied to clipboard
will_is_mentioned is not set if message begins with mention handle
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.