Not Parsing
This commit is contained in:
1 parent
0a53e27abc
commit
9d16680022
2 files changed
+3
-7
No files matched your search
+1
-1
@@ -1023,7 +1023,7 @@
|
||||
let event = {
|
||||
dateRange: dataRange
|
||||
}
|
||||
console.log(key)
|
||||
|
||||
global.SYSTEM_EVENT_HANDLER.raiseEvent(key, 'Data Range Updated', event)
|
||||
|
||||
callBack(global.DEFAULT_OK_RESPONSE);
|
||||
|
||||
+2
-6
@@ -473,12 +473,8 @@
|
||||
for (let i = 0; i < bot.SESSION.socialBots.bots.length; i++) {
|
||||
let socialBot = bot.SESSION.socialBots.bots[i]
|
||||
if (socialBot.type === "Telegram Bot") {
|
||||
try {
|
||||
let code = JSON.parse(socialBot.code)
|
||||
socialBot.botInstance = setUpTelegramBot(code.botToken, code.chatId)
|
||||
} catch (err) {
|
||||
parentLogger.write(MODULE_NAME, "[WARN] initialize -> setUpSocialBots -> err = " + err.stack);
|
||||
}
|
||||
let code = socialBot.code
|
||||
socialBot.botInstance = setUpTelegramBot(code.botToken, code.chatId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user