botbuilder-wit
Advanced tools
Comparing version
@@ -53,3 +53,3 @@ "use strict"; | ||
var utterance = context.message.text; | ||
this.witClient.message(utterance) | ||
this.witClient.message(utterance, {}) | ||
.then(function (response) { | ||
@@ -165,4 +165,3 @@ if (response.error) { | ||
}()); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = WitRecognizer; | ||
exports.WitRecognizer = WitRecognizer; | ||
//# sourceMappingURL=WitRecognizer.js.map |
{ | ||
"name": "botbuilder-wit", | ||
"version": "1.1.4", | ||
"version": "2.0.0", | ||
"description": "Provides Wit.ai NLP integration for the Microsoft Bot Builder SDK. Supports caching with Redis and Memcached.", | ||
"main": "lib/WitRecognizer.js", | ||
"main": "lib/WitRecognizer", | ||
"scripts": { | ||
@@ -36,2 +36,3 @@ "build": "tsc", | ||
"@types/node": "^7.0.4", | ||
"@types/node-wit": "^4.2.1", | ||
"chai": "^3.5.0", | ||
@@ -38,0 +39,0 @@ "codecov": "^1.0.1", |
@@ -16,3 +16,3 @@ # botbuilder-wit | ||
const { IntentDialog } = require('botbuilder'); | ||
const WitRecognizer = require('botbuilder-wit'); | ||
const { WitRecognizer } = require('botbuilder-wit'); | ||
const recognizer = new WitRecognizer('Wit.ai_access_token'); | ||
@@ -69,4 +69,2 @@ const intents = new IntentDialog({recognizers: [recognizer]}); | ||
``` | ||
## Recompiling the TypeScript source | ||
If you want to recompile the source, you will need to make sure the ```node-wit``` dependency has a type definitions file in its root directory. Even though there is a TypeScript definitions package for node-wit you can install with ```npm install --save-dev @types/node-wit```, the compiler will complain when using it. So instead, you can use the minimalistic version in the resources directory that will do the job. | ||
@@ -73,0 +71,0 @@ ## License |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22294
-12.14%10
11.11%13
-27.78%231
-25.96%71
-2.74%