Created
August 31, 2010 02:34
-
-
Save marks/558441 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| call('tropo@gmail.com', [ | |
| network: 'GMAIL', | |
| onAnswer: { | |
| ask("Hey, did you remember to take your pills?", [ | |
| timeout: 120, | |
| choices: 'yes(yes,y,1), no(no,n,2)', | |
| onChoice: { event-> | |
| if(event.value == "yes") { | |
| say "ok, just checkin." | |
| } else { | |
| say("What are you waiting for?") | |
| } | |
| } | |
| ]) | |
| } | |
| ]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment