Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for third party session handlers #137
This adds a constructor option
The default session handler, from
Session handlers aren't required to implement all functions (the unit test tries setting a "null" session handler which gives the bot really bad amnesia).
I'm not sure how useful this was after all. It won't work with any async session drivers, which sort of defeats the original purpose for this code. Somebody wanted to hook up a database layer (Mongo or Redis or SQL or something) to manage the sessions, but most of those things work asynchronously using promises or callbacks, but that can't work with the way rivescript-js is currently designed.