Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -244,8 +244,8 @@ def hook():
|
|
244 |
if message_type == "text":
|
245 |
message = messenger.get_message(data)
|
246 |
# Handle greetings
|
247 |
-
if message.lower() in ("hi", "hello", "hola", "help", "how are you"):
|
248 |
-
response = "Hi there! My name is SmartLedger. How can I help you today?"
|
249 |
|
250 |
messenger.send_message(message=f"{response}", recipient_id=mobile)
|
251 |
else:
|
|
|
244 |
if message_type == "text":
|
245 |
message = messenger.get_message(data)
|
246 |
# Handle greetings
|
247 |
+
if message.lower() in ("hi", "hello", "hola", "help", "how are you", "sawubona"):
|
248 |
+
response = "Hi there! My name is Qx-SmartLedger. How can I help you today?"
|
249 |
|
250 |
messenger.send_message(message=f"{response}", recipient_id=mobile)
|
251 |
else:
|