Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,8 +75,8 @@ def responsenew(data):
|
|
| 75 |
* if intent = sharing a group return = "share_group"
|
| 76 |
* if intent = sharing a todo list return = "share_todo_list"
|
| 77 |
* if intent = sharing a note return = "share_note"
|
| 78 |
-
* if intent
|
| 79 |
-
* if intent
|
| 80 |
|
| 81 |
""",
|
| 82 |
)
|
|
@@ -131,10 +131,10 @@ def responsenew(data):
|
|
| 131 |
"action": "send_notify",
|
| 132 |
"function": "nothing",
|
| 133 |
}
|
| 134 |
-
elif "
|
| 135 |
respo = {
|
| 136 |
-
"message": "",
|
| 137 |
-
"action": "
|
| 138 |
"function": "nothing",
|
| 139 |
}
|
| 140 |
else:
|
|
|
|
| 75 |
* if intent = sharing a group return = "share_group"
|
| 76 |
* if intent = sharing a todo list return = "share_todo_list"
|
| 77 |
* if intent = sharing a note return = "share_note"
|
| 78 |
+
* if intent = notify then return = "send_notify"
|
| 79 |
+
* if intent = show commands then return = "show_commands"
|
| 80 |
|
| 81 |
""",
|
| 82 |
)
|
|
|
|
| 131 |
"action": "send_notify",
|
| 132 |
"function": "nothing",
|
| 133 |
}
|
| 134 |
+
elif "show_commands" in intent.last:
|
| 135 |
respo = {
|
| 136 |
+
"message": "Here is list of commands you can use:",
|
| 137 |
+
"action": "show_commands",
|
| 138 |
"function": "nothing",
|
| 139 |
}
|
| 140 |
else:
|