messenger-bot-witai-tutorial
messenger-bot-witai-tutorial copied to clipboard
Question: What is cb in the wit.js file?
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 :)
I think it is "callback", just started using bots today so I could be totally wrong.