@nlpjs/console-connector
Advanced tools
Comparing version 4.0.0-rc.13 to 4.0.0-rc.15
{ | ||
"name": "@nlpjs/console-connector", | ||
"version": "4.0.0-rc.13", | ||
"version": "4.0.0-rc.15", | ||
"description": "Console Connector", | ||
@@ -30,3 +30,3 @@ "author": { | ||
}, | ||
"gitHead": "1150a72faf75391875ccd9f6165e775f121c32b1" | ||
"gitHead": "51837c0b7a0b5ba14a93fcf390e4b9a5025fe3da" | ||
} |
@@ -63,7 +63,14 @@ /* | ||
} else { | ||
text = message.message; | ||
text = message.answer || message.message; | ||
} | ||
const botName = this.settings.botName || 'bot'; | ||
// eslint-disable-next-line no-console | ||
console.log(`${botName}> ${text}`); | ||
if (this.settings.debug && typeof message === 'object' && !reference) { | ||
const intent = message.intent || ''; | ||
const score = message.score || ''; | ||
// eslint-disable-next-line no-console | ||
console.log(`${botName}> ${text} (${intent} - ${score})`); | ||
} else { | ||
// eslint-disable-next-line no-console | ||
console.log(`${botName}> ${text}`); | ||
} | ||
} | ||
@@ -70,0 +77,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9749
135