This library adds support for a conversation session to daab.
npm install daab-sessionYou can use this library as follows:
const{ withSession }=require('daab-session');constactions=robot=>{robot.respond(/ping$/i,res=>{letsession=res.session;// current session object. it has 'id' and 'data' fields.
...
});};module.exports=withSession(actions);The default store is MemoryStore. There is RedisStore as another store implementation.
More information about usage can be found in the examples directory.