From 543c82e8906c2d3cfb10b243d1fccfc6051d5399 Mon Sep 17 00:00:00 2001 From: German Attanasio Date: Sun, 5 May 2019 18:53:06 -0400 Subject: [PATCH] chore(examples): multi-bot example constructor updated --- examples/multi-bot/app.js | 3 ++- test/test.post_message.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 test/test.post_message.js diff --git a/examples/multi-bot/app.js b/examples/multi-bot/app.js index 539116f..08bfcab 100644 --- a/examples/multi-bot/app.js +++ b/examples/multi-bot/app.js @@ -16,7 +16,8 @@ require('dotenv').load(); -const middleware = require('botkit-middleware-watson')({ +const WatsonMiddleware = require('botkit-middleware-watson').WatsonMiddleware; +const middleware = new WatsonMiddleware({ iam_apikey: process.env.ASSISTANT_IAM_APIKEY, workspace_id: process.env.WORKSPACE_ID, url: process.env.ASSISTANT_URL || 'https://gateway.watsonplatform.net/assistant/api', diff --git a/test/test.post_message.js b/test/test.post_message.js deleted file mode 100644 index cf2bc43..0000000 --- a/test/test.post_message.js +++ /dev/null @@ -1 +0,0 @@ - * limitations under the License.