recime-message-responder
Advanced tools
Comparing version 2.8.9 to 2.9.0
@@ -12,3 +12,3 @@ import { Vars } from './vars'; | ||
private sender; | ||
private gotoId; | ||
private intents; | ||
constructor(sender: any, options: RequestOptions); | ||
@@ -15,0 +15,0 @@ normalizeButton(__: any, content: any): any; |
@@ -7,2 +7,3 @@ "use strict"; | ||
constructor(sender, options) { | ||
this.intents = []; | ||
this.sender = sender; | ||
@@ -132,4 +133,4 @@ this.options = options; | ||
next = false; | ||
if (msgId !== this.gotoId) { | ||
this.gotoId = msgId; | ||
if (this.intents.filter(x => x === message.content.intent).length === 0) { | ||
this.intents.push(message.content.intent); | ||
const args = JSON.parse(JSON.stringify(this.options.context.args)); | ||
@@ -136,0 +137,0 @@ args.event = { |
{ | ||
"name": "recime-message-responder", | ||
"version": "2.8.9", | ||
"version": "2.9.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -19,3 +19,3 @@ import request = require('request'); | ||
private gotoId: string; | ||
private intents = []; | ||
@@ -156,4 +156,5 @@ constructor(sender, options: RequestOptions) { | ||
if (msgId !== this.gotoId){ | ||
this.gotoId = msgId; | ||
if (this.intents.filter(x=> x === message.content.intent).length === 0){ | ||
this.intents.push(message.content.intent); | ||
const args = JSON.parse(JSON.stringify(this.options.context.args)); | ||
@@ -160,0 +161,0 @@ |
92667
1460