Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Created April 7, 2010 01:30
Show Gist options
  • Save pdeschen/358372 to your computer and use it in GitHub Desktop.
Save pdeschen/358372 to your computer and use it in GitHub Desktop.
event = prompt(text, [
repeat:3,
timeout:7,
choices:listOptions( contacts ),
onEvent:
{ handlingEvent->
handlingEvent.onTimeout( {
say( "I'm sorry, I didn't hear anything." )
}
)
handlingEvent.onBadChoice( {
say( "I'm sorry, I didn't understand what you said." )
}
)
}
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment