-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
5,400 additions
and
2,667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
channels: | ||
telegram: | ||
api_token: !ENV ${TELEGRAM_API_KEY} | ||
extensions: | ||
datetime: {} | ||
intents: | ||
- name: ask_open | ||
examples: | ||
- Open? | ||
- Are you open? | ||
- Are they open? | ||
- Are you working right now? | ||
- Do you work right now? | ||
dialog: | ||
- condition: intents.ask_open | ||
response: | | ||
{% set local_time = utc_time.astimezone("America/Toronto"|tz) %} | ||
{% if local_time.isoweekday() in [1, 2, 3, 4, 5] and local_time.hour >= 10 and local_time.hour < 18 %} | ||
We are open, welcome! | ||
{% else %} | ||
Now we are not woking. | ||
We are open from 10 am to 6 pm every weekday. | ||
{% endif %} | ||
- condition: true | ||
response: | | ||
I didn't understand. You can try rephrasing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
- name: Sunday, 10 am | ||
turns: | ||
- utc_time: "2023-05-21T14:00+00:00" | ||
message: You are open? | ||
response: Now we are not woking. We are open from 10 am to 6 pm every weekday. | ||
- name: Monday, 9 am | ||
turns: | ||
- utc_time: "2023-05-22T13:00+00:00" | ||
message: You are open? | ||
response: Now we are not woking. We are open from 10 am to 6 pm every weekday. | ||
- name: Monday, 10 am | ||
turns: | ||
- utc_time: "2023-05-22T14:00+00:00" | ||
message: You are open? | ||
response: We are open, welcome! | ||
- name: Friday, 5 pm | ||
turns: | ||
- utc_time: "2023-05-26T21:00+00:00" | ||
message: You are open? | ||
response: We are open, welcome! | ||
- name: Friday, 6 pm | ||
turns: | ||
- utc_time: "2023-05-26T22:00+00:00" | ||
message: You are open? | ||
response: Now we are not woking. We are open from 10 am to 6 pm every weekday. | ||
- name: Saturday, 10 am | ||
turns: | ||
- utc_time: "2023-05-27T14:00+00:00" | ||
message: You are open? | ||
response: Now we are not woking. We are open from 10 am to 6 pm every weekday. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.