Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will_is_mentioned is not set if message begins with mention handle #379

Open
dawn-minion opened this issue Jul 30, 2018 · 0 comments
Open

Comments

@dawn-minion
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants