Data Mine Refactoring

This commit is contained in:
Luis Fernando Molina committed 2019-12-26 10:45:35 +01:00
1 parent 21192c971c
commit 56e750b39f
21 files changed
+95 -95

No files matched your search

+4 -4
View File
@@ -43,10 +43,10 @@
/* This bot is not ready for taking its code from the UI, then we need to load it from its repo. */
let filePath = bot.devTeam + "/" + "bots" + "/" + bot.repo + "/" + pProcessConfig.codeName
let filePath = bot.dataMine + "/" + "bots" + "/" + bot.repo + "/" + pProcessConfig.codeName
filePath += "/User.Bot.js"
fileStorage.getTextFile(bot.devTeam, filePath, onBotDownloaded);
fileStorage.getTextFile(bot.dataMine, filePath, onBotDownloaded);
function onBotDownloaded(err, text) {
@@ -61,10 +61,10 @@
USER_BOT_MODULE = {}
USER_BOT_MODULE.newUserBot = eval(text); // TODO This needs to be changed function
filePath = bot.devTeam + "/" + "bots" + "/" + bot.repo;
filePath = bot.dataMine + "/" + "bots" + "/" + bot.repo;
filePath += "/Commons.js"
fileStorage.getTextFile(bot.devTeam, filePath, onCommonsDownloaded);
fileStorage.getTextFile(bot.dataMine, filePath, onCommonsDownloaded);
function onCommonsDownloaded(err, text) {