Created
August 17, 2010 14:42
-
-
Save johndbritton/530194 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
state :hello do | |
# These sentences are "spoken" via the Twilio Say verb. | |
# | |
say "Twilio Gorillas. Wasssaaap!" | |
# Text specified as prompt is added to the "sayings" for this state. | |
# The prompt associates the key-press, names the event, and specifies | |
# next state to transition to. | |
# | |
prompt 1, "If you are a jungle-dweller, press 1", :primal, :go => :jungle_dweller | |
prompt 2, "Captured primates, please press 2", :captured, :go => :zoo_habitant | |
prompt 9, "To end this call, press 9", :end_call, :go => :goodbye | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment