alavers/smooch-bot

how to move bot receive step in script.js

qadirsuh opened this issue · 0 comments

How to send bot another state's receive step in script.js file.

I can do this in heroku/index.js page using the following code.

for going receive I have to do it like

 Promise.all([
            stateMachine.bot.releaseLock(),
            stateMachine.setState(ai_action),   // set new state
            stateMachine.receive(ai_action)      // goto receive
        ]);

I need to do this same in script.js