Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
sjwalter committed Nov 18, 2010
1 parent 5c402dc commit fbabf7e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/quiz-message/app.js
@@ -1,5 +1,5 @@
var TwilioClient = require('../../lib/twilio').Client,
Twiml = require('../../lib/twiml'),
var TwilioClient = require('../../lib').Client,
Twiml = require('../../lib').Twiml,
creds = require('./config').Credentials,
client = new TwilioClient(creds.sid, creds.authToken, creds.hostname),
questions = [
Expand Down Expand Up @@ -55,12 +55,11 @@ var phone = client.getPhoneNumber(creds.incoming);
phone.setup(function() {
phone.on('incomingCall', function(reqParams, res) {
var intro = new Twiml.Say(
/*'Welcome to Stephen\'s weird Canadian trivia game. It works like so. ' +
'Welcome to Stephen\'s weird Canadian trivia game. It works like so. ' +
'You will be asked a multiple choice question. Each answer is ' +
'preceeded by a number. Choose an answer, and press that number on ' +
'your phone. If you answer correctly, you get to replace the ' +
'winner\'s message with your own.'),*/
'hey'),
'winner\'s message with your own.'),
q = choose(questions),
playMessage = currentWinnerMessage ? new Twiml.Play(currentWinnerMessage) : null;

Expand Down

0 comments on commit fbabf7e

Please sign in to comment.