@tiledesk/tiledesk-tybot-connector 0.2.139-rc6 → 0.2.139-rc7
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/package.json
CHANGED
|
@@ -42,7 +42,7 @@ class DirReplaceBotV3 {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
async go(action, callback) {
|
|
45
|
-
let
|
|
45
|
+
let botId = action.botId;
|
|
46
46
|
let botSlug = action.botSlug;
|
|
47
47
|
let useSlug = action.useSlug;
|
|
48
48
|
let blockName = action.blockName;
|
|
@@ -52,14 +52,14 @@ class DirReplaceBotV3 {
|
|
|
52
52
|
this.context.tdcache, this.context.requestId
|
|
53
53
|
);
|
|
54
54
|
const filler = new Filler();
|
|
55
|
-
|
|
55
|
+
//botId = filler.fill(botId, variables);
|
|
56
56
|
botSlug = filler.fill(botSlug, variables);
|
|
57
57
|
|
|
58
58
|
let data = {};
|
|
59
59
|
if (useSlug && useSlug === true) {
|
|
60
60
|
data.slug = botSlug;
|
|
61
61
|
} else {
|
|
62
|
-
data.
|
|
62
|
+
data.id = botId;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const HTTPREQUEST = {
|