recime-message-responder
Advanced tools
Comparing version 1.2.8 to 1.2.9
@@ -7,2 +7,3 @@ import { Vars } from './vars'; | ||
vars: Vars; | ||
break: Function; | ||
execute: Function; | ||
@@ -9,0 +10,0 @@ } |
@@ -63,3 +63,3 @@ "use strict"; | ||
response: options.res | ||
}).then(() => 'break'); | ||
}).then(() => options.break()); | ||
} | ||
@@ -75,3 +75,3 @@ default: { | ||
if (message && !userInput) { | ||
if (message === "break") { | ||
if (message === options.break()) { | ||
userInput = true; | ||
@@ -78,0 +78,0 @@ } |
@@ -72,2 +72,5 @@ "use strict"; | ||
user: user, | ||
break: () => { | ||
return "BREAK"; | ||
}, | ||
execute: (intentName) => { | ||
@@ -74,0 +77,0 @@ return recime_nlp_provider_1.default.request({ |
{ | ||
"name": "recime-message-responder", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,2 +11,3 @@ import { CodeBlock } from './code-block'; | ||
vars: Vars; | ||
break: Function; | ||
execute: Function; | ||
@@ -75,3 +76,3 @@ } | ||
response: options.res | ||
}).then(() => 'break'); | ||
}).then(() => options.break()); | ||
} | ||
@@ -87,3 +88,3 @@ default: { | ||
if (message && !userInput) { | ||
if (message === "break") { | ||
if (message === options.break()) { | ||
userInput = true; | ||
@@ -90,0 +91,0 @@ } else { |
@@ -74,3 +74,3 @@ import HandleBars from 'handlebars'; | ||
} | ||
processResponse(res, __, v : Vars) { | ||
@@ -89,2 +89,5 @@ return __.profile(this.args).then(user => { | ||
user: user, | ||
break : ()=>{ | ||
return "BREAK"; | ||
}, | ||
execute : (intentName)=>{ | ||
@@ -91,0 +94,0 @@ return nlp.request({ |
42624
1058