messenger-bot-witai-tutorial icon indicating copy to clipboard operation
messenger-bot-witai-tutorial copied to clipboard

Question: What is cb in the wit.js file?

Open neeraj87 opened this issue 8 years ago • 1 comments

I am trying to understand your project and write my own code (instead of just cloning your repo and using it for my bot). I am confused on what the cb() function is in the wit.js file?

Another thing is that I am facing Syntax Error issues on many places where you have used ECMAScript. For example in the wit.js, its giving me trouble at the

say (sessionId, context, message, cb)

Is there anything I can do to fix this? I am not sure what the alternate for this code would be.

PS: Expect more questions to follow. Thanks :)

neeraj87 avatar Dec 30 '16 15:12 neeraj87

I think it is "callback", just started using bots today so I could be totally wrong.

yurik94 avatar Feb 04 '17 16:02 yurik94