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

#379 Set will_is_mentioned even if message was direct #380

Open
wants to merge 245 commits into
base: master
Choose a base branch
from

Conversation

dawn-minion
Copy link

PR makes it so will_is_mentioned is set, even if message was determined to be direct (Began with the Chatbots handle). Change affects only HipChat and Slack, as RocketChat already seems to have this correct behaviour since it checks the mention list.

Simply moved the will_is_mentioned to before where the name is stripped out.

Fixes #379

woohgit and others added 30 commits October 8, 2017 12:46
The old world weather API is no more. The replacement does not provide the local time in the JSON output.
The solution is migrating the plugin to use the google apis which provides the timeZoneId, which is definitely enough for the `pytz` to generate a datetime object.
In the console the HTML tags look pretty uggly and it's better to eliminate them completely.
…_backend

strip HTML tags for shell backend
* Tenzer-all-the-changes:
  Add Jeppe Toustrup to the AUTHORS list
  Bugfix: Avoid the use of `locals()` in the reminder plugin
  Bugfix: Don't report HC/BB state if the previous state wasn't known
  Pylint: W0612, W0613, remove unused variables
  Pylint: C1801, don't use `len(i) == 0` as a condition in if statements
  Pylint: W1201, let the logging functions do string interpolation
  Bugfix: Correct regex for will.plugins.friendly.mornin plugin
  Cleanup: Remove broken random_topic plugin
  Python 3: Run tests in Python 3 along with Python 2
  Python 3: Use new way of representing octal numbers
  Python 3: Fix detection of plugin methods
  Python 3: Use new form of `except` lines
  Python 3: Make imports absolute and clean up unused ones
  Python 3: Use six to handle imports which have changed between 2 and 3
  Python 3: Update dependencies on dnspython and natural to get PY3 support
  Python 3: print is a function, not a statement
* feature/merges-in-py3:
  Friendlier location output
eosman-tibco and others added 25 commits May 28, 2018 09:28
There was no check whether the given channel name, regular or default,
existed.
This caused the thread to fail and stall Will until it was restarted.
skoczen#348 Scheduled reminders should notify the user who requested them
…ckends

Add --backends option to generate_will_project
Improve Slack Connection handling
@dawn-minion
Copy link
Author

/cc @unicolet

@wontonst
Copy link
Collaborator

let me understand the behavior a little more, if you say

Lets go ahead and deploy (at)Chatbot deploy production

in your WillPlugin, the respond_to is set to

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

?

@dawn-minion
Copy link
Author

@wontonst The respond_to in our case was only set to the @chatbot deploy production message, which we wanted to be able to exist anywhere in the message. The main thing I wanted was for a user to give the bot a command in the middle of their message like the above example.

@wontonst
Copy link
Collaborator

I see. Let me rephrase my question. With the ability to give the bot a command in the middle of the message, what does the will respond_to look like when you match with anchors? In the example, would will respond to

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

or

^deploy production$

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

Successfully merging this pull request may close these issues.