Created
November 28, 2017 17:27
-
-
Save dbabbs/b24c7d0e4d8cbb8ecda46b703e3fe6a8 to your computer and use it in GitHub Desktop.
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
if (!incoming.includes('near')) { //Making sure it is in correct format | |
twiml.message('Please send a message with a place name and address. Example: "Mexican food near 701 Pike Street Seattle"'); | |
res.writeHead(200, { | |
'Content-Type': 'text/xml' | |
}); | |
res.end(twiml.toString()); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment