From 2bc5b2408c1424d59bed5b68f5b14657586b7725 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 28 May 2018 18:19:46 +0200 Subject: [PATCH] Changes in code being stored at the Cloud in their own fork of the bot --- CloudRequire.js | 2 +- Root.js | 2 +- Run.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CloudRequire.js b/CloudRequire.js index 6ef418462..361ce8cfb 100644 --- a/CloudRequire.js +++ b/CloudRequire.js @@ -25,7 +25,7 @@ if (FULL_LOG === true) { logger.write("[INFO] downloadBot -> Entering function."); } - let filePath = bot.devTeam + "/" + bot.repo + "/" + pProcessConfig.name; + let filePath = global.USER_DEV_TEAM + "/" + "members" + "/" + global.USER_LOGGED_IN + "/" + bot.repo + "/" + pProcessConfig.name; let fileName = "User.Bot.js"; pCloudStorage.getTextFile(filePath, fileName, onFileReceived); diff --git a/Root.js b/Root.js index 82c1bd778..0aa5d9556 100644 --- a/Root.js +++ b/Root.js @@ -148,7 +148,7 @@ exports.newRoot = function newRoot() { if (err.result === global.DEFAULT_OK_RESPONSE.result) { - let filePath = "AdvancedAlgos" + "/" + "AACloud"; + let filePath = global.USER_DEV_TEAM + "/" + "members" + "/" + global.USER_LOGGED_IN + "/" + "AACloud"; let fileName = "this.config.json"; cloudStorage.getTextFile(filePath, fileName, onFileReceived); diff --git a/Run.js b/Run.js index 93fa96d6f..d0d489e8d 100644 --- a/Run.js +++ b/Run.js @@ -2,6 +2,8 @@ global.CURRENT_ENVIRONMENT = "Develop"; global.CURRENT_LOCATION = "Cloud"; global.SHALL_BOT_STOP = false; +global.USER_LOGGED_IN = "ciencias"; +global.USER_DEV_TEAM = "AAMasters"; process.on('uncaughtException', function (err) { console.log('[INFO] Run -> uncaughtException -> err.message = ' + err.message);