process Config cleaned out

This commit is contained in:
Luis Fernando Molina committed 2020-12-03 19:39:24 +01:00
1 parent dec432c0fb
commit 0eaf3255b3
10 files changed
+65 -88

No files matched your search

+1 -4
View File
@@ -13,10 +13,7 @@
function start(processIndex) {
try {
let botModuleObject
let botConfig = TS.projects.superalgos.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.parentNode.config
let processConfig = TS.projects.superalgos.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.config
let VARIABLES_BY_PROCESS_INDEX
/*
We will use a logger for what happens before and after the bot main loop.
@@ -82,7 +79,7 @@
let botModule = project.botModules[botModuleDefinition.propertyName]
let moduleFunction = botModule[botModuleDefinition.functionName]
botModuleObject = moduleFunction(processIndex)
botModuleObject.initialize(processConfig, onInitializeReady);
botModuleObject.initialize(onInitializeReady);
}
catch (err) {
console.log(logDisplace + "[ERROR] start -> err = " + err.stack);