Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Created April 7, 2010 01:28
Show Gist options
  • Save pdeschen/358369 to your computer and use it in GitHub Desktop.
Save pdeschen/358369 to your computer and use it in GitHub Desktop.
sequencer ("C20")
{
event = prompt(text, [
repeat:3,
timeout:7,
choices:listOptions( contacts ),
onEvent:
{ handlingEvent->
handlingEvent.onTimeout( {
sequencer ("C21")
{say( "I'm sorry, I didn't hear anything." )}
}
)
handlingEvent.onBadChoice( {
sequencer ("C22")
{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