@tiledesk/tiledesk-tybot-connector 0.2.22 → 0.2.23
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,8 +5,13 @@
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
+
### v0.2.23
|
|
9
|
+
- Fixed CaptureUserReply. Added Check for missing goToIntent
|
|
10
|
+
- When channelName == "chat21" it will be renamed in "web"
|
|
11
|
+
|
|
8
12
|
### v0.2.22
|
|
9
13
|
- Fixed "TildeskChatConst.js is not defined" in index.js
|
|
14
|
+
- added System attribute "channelName"
|
|
10
15
|
|
|
11
16
|
### v0.2.21
|
|
12
17
|
- log clean
|
|
@@ -338,7 +338,14 @@ class TiledeskChatbotUtil {
|
|
|
338
338
|
if (message.text && message.sender !== "_tdinternal") {
|
|
339
339
|
await chatbot.addParameter(TiledeskChatbotConst.REQ_LAST_USER_TEXT_KEY, message.text); // DEPRECATED
|
|
340
340
|
await chatbot.addParameter("lastUserText", message.text);
|
|
341
|
-
|
|
341
|
+
if (message.channel) {
|
|
342
|
+
if (message.channel.name === "chat21") {
|
|
343
|
+
await chatbot.addParameter("chatChannel", "web"); // renames the channel in chat21
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
await chatbot.addParameter("chatChannel", message.channel.name);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
342
349
|
await chatbot.addParameter("lastUserMessageType", message.type);
|
|
343
350
|
await chatbot.addParameter("lastUserMessage", TiledeskChatbotUtil.lastUserMessageFrom(message)); // JSON TYPE *NEW
|
|
344
351
|
// get image
|
package/package.json
CHANGED
|
@@ -103,9 +103,15 @@ class DirCaptureUserReply {
|
|
|
103
103
|
|
|
104
104
|
if (callback) {
|
|
105
105
|
// console.log("(DirCaptureUserReply) #executeGoTo(goToIntent)", goToIntent)
|
|
106
|
-
|
|
106
|
+
if (goToIntent) {
|
|
107
|
+
this.#executeGoTo(goToIntent, () => {
|
|
108
|
+
callback(); // continue the flow
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
107
112
|
callback(); // continue the flow
|
|
108
|
-
}
|
|
113
|
+
}
|
|
114
|
+
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
catch(error) {
|