Hi
I try leave a scene in this codes :
scene.leave((ctx)=>console.log('leave'))
scene.on('text',({reply})=>{
reply('bye');
leave('join');
})
And
scene.on('text',({reply})=>{
reply('bye');
},leave())
But they doesn't work.
So how can leave a stage after many instructions in a function?
I see source code and find that with ctx can do it.
ctx.scene.leave()
or
ctx.scene.leave('<sceneName>')
Most helpful comment
I see source code and find that with ctx can do it.
ctx.scene.leave()or
ctx.scene.leave('<sceneName>')