@tiledesk/tiledesk-tybot-connector 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Tiledesk tybotRoute
2
2
 
3
+ ### 0.1.4 updated "@tiledesk/tiledesk-chatbot-plugs" to "^0.1.8"
4
+
5
+ ### 0.1.2 fixes to enhance as-a-route installation
6
+
3
7
  ### 0.1.1 added \_td prefix to directives. Keeping the legacy \agent directive
4
8
 
5
9
  ### 0.1.0 first release
package/index.js CHANGED
@@ -348,17 +348,30 @@ function startApp(settings, completionCallback) {
348
348
  if (!settings.log) {
349
349
  log = false;
350
350
  }
351
+ /*
352
+ if (!process.env.MONGODB_URI) {
353
+ throw new Error("process.env.MONGODB_URI is mandatory.");
354
+ }
355
+ if (!process.env.API_ENDPOINT) {
356
+ throw new Error("settings.API_ENDPOINT is mandatory.");
357
+ }
358
+ if (!process.env.TILEBOT_LOG) {
359
+ log = false;
360
+ }
361
+ else {
362
+ log = true;
363
+ }*/
351
364
 
352
- console.log("Starting Tybot connector...");
353
- console.log("(Tybot) Connecting to mongodb...");
365
+ console.log("Starting Tilebot connector...");
366
+ console.log("(Tilebot) Connecting to mongodb...");
354
367
 
355
- connection = mongoose.connect(process.env.mongoUrl, { "useNewUrlParser": true, "autoIndex": false }, function(err) {
368
+ connection = mongoose.connect(settings.MONGODB_URI, { "useNewUrlParser": true, "autoIndex": false }, function(err) {
356
369
  if (err) {
357
370
  console.error('Failed to connect to MongoDB on ' + settings.MONGODB_URI + " ", err);
358
371
  //process.exit(1); // add => exitOnFail: true
359
372
  }
360
373
  else {
361
- console.info("Tybot Mongodb connected.");
374
+ console.info("Tilebot start.");
362
375
  if (completionCallback) {
363
376
  completionCallback();
364
377
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,15 +14,14 @@
14
14
  "@tiledesk/tiledesk-chatbot-client": "^0.5.30",
15
15
  "@tiledesk/tiledesk-chatbot-util": "^0.8.37",
16
16
  "@tiledesk/tiledesk-client": "^0.8.28",
17
- "@tiledesk/tiledesk-chatbot-plugs": "^0.1.6",
17
+ "@tiledesk/tiledesk-chatbot-plugs": "^0.1.8",
18
18
  "axios": "^0.27.2",
19
19
  "body-parser": "^1.19.0",
20
20
  "express": "^4.17.1",
21
21
  "jsonwebtoken": "^8.5.1",
22
22
  "mongoose": "^6.3.5",
23
23
  "nanoid": "^3.1.25",
24
- "request": "^2.88.2",
25
- "uuid": "^3.3.3",
26
- "cors": "^2.8.5"
24
+ "cors": "^2.8.5",
25
+ "uuid": "^3.3.3"
27
26
  }
28
27
  }
@@ -1,5 +1,9 @@
1
1
  # Tiledesk Plugs
2
2
 
3
+ ### 0.1.8 online - minor fixes
4
+
5
+ ### 0.1.7 added \_tdDeflectToAgent
6
+
3
7
  ### 0.1.6 bugfix
4
8
 
5
9
  ### 0.1.5 updated MarckbotPlugs.js & DirectivesPlug.js coming from RASA. Now Markbot supports native buttons and images already available in the message. Original Buttons are preserved if found. Original image is preserved if found.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-chatbot-plugs",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Tiledesk Chatbot Plugs",
5
5
  "engines": {
6
6
  "node": ">=12.x"