Skip to content

Commit

Permalink
Make the bot intent share the same backing store
Browse files Browse the repository at this point in the history
Else the bot can forget its own state
  • Loading branch information
kegsay committed May 8, 2017
1 parent fb26925 commit c0c0285
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bridge.js
Expand Up @@ -243,7 +243,10 @@ Bridge.prototype.run = function(port, config, appServiceInstance) {
);
});
}
var botIntentOpts = { registered: true };
var botIntentOpts = {
registered: true,
backingStore: this._intentBackingStore,
};
if (this.opts.intentOptions.bot) { // copy across opts
Object.keys(this.opts.intentOptions.bot).forEach(function(k) {
botIntentOpts[k] = self.opts.intentOptions.bot[k];
Expand Down

0 comments on commit c0c0285

Please sign in to comment.