@tiledesk/tiledesk-tybot-connector 0.1.26 → 0.1.27

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
@@ -5,6 +5,9 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
+ ### 0.1.27 - online
9
+ - log fix
10
+
8
11
  ### 0.1.26 - online
9
12
  - no message is sent when there is no message for markbot out of the pipeline. Only directives are admitted.
10
13
 
package/index.js CHANGED
@@ -170,7 +170,7 @@ router.post('/ext/:projectId/requests/:requestId/messages', async (req, res) =>
170
170
  // PIPELINE-EXT
171
171
  const bot_answer = await ExtUtil.execPipelineExt(request, answer, directivesPlug, tdcache, log);
172
172
  //const bot_answer = answer;
173
- console.log("bot_answer to send:", bot_answer);
173
+ // console.log("bot_answer to send:", bot_answer);
174
174
  // empty answer
175
175
  // let b = {
176
176
  // text: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@ class MarkbotChatbotPlug {
15
15
 
16
16
  exec(pipeline) {
17
17
  let message = pipeline.message;
18
- console.log("markbot on message", message)
18
+ // console.log("markbot on message", message)
19
19
  if (message.attributes && (message.attributes.markbot == undefined || message.attributes.markbot == false)) { // defaults to disabled
20
20
  if (this.log) {console.log("markbot disabled")}
21
21
  pipeline.nextplug();
@@ -28,9 +28,9 @@ class MarkbotChatbotPlug {
28
28
  if (message.attributes && message.attributes.commands) {
29
29
  commands = message.attributes.commands;
30
30
  }
31
- console.log("before taking decision:");
32
- console.log("message.text:", incoming_message_text);
33
- console.log("message commands:", commands)
31
+ // console.log("before taking decision:");
32
+ // console.log("message.text:", incoming_message_text);
33
+ // console.log("message commands:", commands)
34
34
  if (incoming_message_text === "" && !commands) {
35
35
  console.log("message with no content. Ignoring");
36
36
  pipeline.message = null;
@@ -83,9 +83,9 @@ class MarkbotChatbotPlug {
83
83
  }
84
84
  }
85
85
  }
86
- else if (message.attributes && !message.attributes.commands) {
87
- console.log("no message commands.");
88
- }
86
+ // else if (message.attributes && !message.attributes.commands) {
87
+ // console.log("no message commands.");
88
+ // }
89
89
  if (this.log) {console.log("Message out of Markbot:", JSON.stringify(message));}
90
90
  pipeline.nextplug();
91
91