Skip to content

Commit

Permalink
Take today out of the relative day vocabulary file as it was conflict…
Browse files Browse the repository at this point in the history
…ing with some of the current weather intents.
  • Loading branch information
chrisveilleux committed May 12, 2021
1 parent 368c368 commit 276a2bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 4 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def handle_current_weather(self, message: Message):
.require("Like")
.require("Outside")
.optionally("Location")
.optionally("Today")
)
def handle_like_outside(self, message: Message):
"""Handle current weather requests such as: what's it like outside?
Expand Down Expand Up @@ -230,14 +229,13 @@ def handle_current_temperature(self, message: Message):

@intent_handler(
IntentBuilder("")
.optionally("Query")
.require("Temperature")
.optionally("Query")
.optionally("Location")
.optionally("Unit")
.optionally("RelativeDay")
.optionally("Now")
)
def handle_simple_temperature(self, message: Message):
def handle_daily_temperature(self, message: Message):
"""Handle simple requests for current temperature.
Examples: "What is the temperature?"
Expand All @@ -248,13 +246,13 @@ def handle_simple_temperature(self, message: Message):

@intent_handler(
IntentBuilder("")
.require("RelativeTime")
.require("Temperature")
.require("RelativeTime")
.optionally("Query")
.optionally("RelativeDay")
.optionally("Location")
)
def handle_temperature_at_time(self, message: Message):
def handle_hourly_temperature(self, message: Message):
"""Handle requests for current temperature at a relative time.
Examples:
Expand Down
2 changes: 0 additions & 2 deletions vocab/en-us/RelativeDay.voc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
today
today's
tomorrow
tomorrow's
yesterday
Expand Down

0 comments on commit 276a2bb

Please sign in to comment.