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
@@ -41,10 +41,10 @@
return
}
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.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) {