@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 +3 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/tiledeskChatbotPlugs/MarkbotChatbotPlug.js +7 -7
package/CHANGELOG.md
CHANGED
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
|
@@ -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
|
-
|
|
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
|
|