Skip to content

Commit

Permalink
Merge pull request #83 from MycroftAI/bugfix/require-two-keywords
Browse files Browse the repository at this point in the history
require two keywords for adapt match
  • Loading branch information
forslund authored Feb 19, 2020
2 parents 4bf18d5 + 3f7e335 commit 5f53934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _recur_desc(self, recur):

return join_list(day_names, self.translate('and'))

@intent_handler(IntentBuilder("").optionally("Set").require("Alarm")
@intent_handler(IntentBuilder("").require("Set").require("Alarm")
.optionally("Recurring").optionally("Recurrence"))
def handle_set_alarm(self, message):
"""Handler for "set an alarm for..."""
Expand Down

0 comments on commit 5f53934

Please sign in to comment.