key instance changed

This commit is contained in:
Luis Fernando Molina committed 2020-01-27 21:16:51 +01:00
1 parent d093b10b84
commit 2350dc0b23
3 files changed
+24 -32

No files matched your search

+6 -1
View File
@@ -59,7 +59,12 @@
if (bot.process === "Hole-Fixing") {
//USER_BOT_MODULE.newUserBot = require(process.env.BOTS_PATH + '/aamasters/AAMasters/bots/AACharly-Sensor-Bot/Hole-Fixing/User.Bot').newUserBot
}
USER_BOT_MODULE.newUserBot = eval(text); // TODO This needs to be changed function
try {
USER_BOT_MODULE.newUserBot = eval(text); // TODO This needs to be changed function
} catch (err) {
parentLogger.write(MODULE_NAME, "[ERROR] initialize -> onBotDownloaded -> err = " + err.stack);
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
}
filePath = bot.dataMine + "/" + "bots" + "/" + bot.repo;
filePath += "/Commons.js"