Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def responsenew(data):
|
|
110 |
}
|
111 |
}
|
112 |
|
113 |
-
|
114 |
respo = {
|
115 |
'messages': "Todo added!",
|
116 |
'action': "create_todo",
|
@@ -125,7 +125,7 @@ def responsenew(data):
|
|
125 |
'sharedByMe': [],
|
126 |
},
|
127 |
}
|
128 |
-
|
129 |
respo = {
|
130 |
'messages': "Got it!",
|
131 |
'action': "create_note",
|
@@ -141,7 +141,7 @@ def responsenew(data):
|
|
141 |
'sharedByMe': [],
|
142 |
}
|
143 |
}
|
144 |
-
|
145 |
respo = {
|
146 |
"message": "Click the button below to view Premium Services and Coin Recharge options: ",
|
147 |
"action": "payment",
|
|
|
110 |
}
|
111 |
}
|
112 |
|
113 |
+
elif re.search(r"(Add todo|Add to do)", data):
|
114 |
respo = {
|
115 |
'messages': "Todo added!",
|
116 |
'action': "create_todo",
|
|
|
125 |
'sharedByMe': [],
|
126 |
},
|
127 |
}
|
128 |
+
elif "Note down" in data:
|
129 |
respo = {
|
130 |
'messages': "Got it!",
|
131 |
'action': "create_note",
|
|
|
141 |
'sharedByMe': [],
|
142 |
}
|
143 |
}
|
144 |
+
elif "add coins" in data:
|
145 |
respo = {
|
146 |
"message": "Click the button below to view Premium Services and Coin Recharge options: ",
|
147 |
"action": "payment",
|