From 256c53b6f9356f58dbd837dbce363cf711eb39bf Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 10 Dec 2016 17:30:04 +0100 Subject: [PATCH] update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 56721e5..35a4147 100644 --- a/README.md +++ b/README.md @@ -30,15 +30,15 @@ let myInteract = new SmartInteract([{ // note: its an array. You can specify mul default: 'Somebody', validate: (inputString) => { return true } // implement your own validation }]) -SmartInteract.addQuestions([ ... ]) // add more questions -SmartInteract.runQueue() +myInteract.addQuestions([ ... ]) // add more questions +myInteract.runQueue() .then(answerBucket => { // the bucket has all the answers of the completed queue let answerQuestion1 = answerBucket.getAnswerFor('question1') // do something with the answers }) // alternatively use .askQuestion() for more direct control -SmartInteract.askQuestion{ // note: its an array. You can specify multiple questions +myInteract.askQuestion{ // note: its an array. You can specify multiple questions name: 'question2', type: 'confirm', message: 'Do you speak English?',