diff --git a/Assistant.js b/Assistant.js index 708288811..8a5238ee2 100644 --- a/Assistant.js +++ b/Assistant.js @@ -33,7 +33,7 @@ sendMessage: sendMessage }; - let utilities = UTILITIES.newUtilities(bot); + let utilities = UTILITIES.newCloudUtilities(bot); let exchangePositions = []; // These are the open positions at the exchange at the account the bot is authorized to use. let openPositions = []; // These are the open positions the bot knows it made by itself. diff --git a/Utilities.js b/CloudUtilities.js similarity index 96% rename from Utilities.js rename to CloudUtilities.js index cefac3856..884297d9d 100644 --- a/Utilities.js +++ b/CloudUtilities.js @@ -1,12 +1,12 @@  -exports.newUtilities = function newUtilities(BOT) { +exports.newCloudUtilities = function newCloudUtilities(BOT) { const FULL_LOG = true; let bot = BOT; const ROOT_DIR = '../'; - const MODULE_NAME = "Utilities"; + const MODULE_NAME = "CloudUtilities"; const DEBUG_MODULE = require('./DebugLog'); diff --git a/Context.js b/Context.js index 035498bbf..f21f043a0 100644 --- a/Context.js +++ b/Context.js @@ -81,7 +81,7 @@ /* Utilities needed. */ - let utilities = UTILITIES.newUtilities(bot); + let utilities = UTILITIES.newCloudUtilities(bot); /* Storage account to be used here. */ diff --git a/DataSet.js b/DataSet.js index a48b86794..84d45d40b 100644 --- a/DataSet.js +++ b/DataSet.js @@ -23,7 +23,7 @@ /* Utilities needed. */ - let utilities = UTILITIES.newUtilities(bot); + let utilities = UTILITIES.newCloudUtilities(bot); /* Storage account to be used here. */ diff --git a/ExtractionBotProcessMainLoop.js b/ExtractionBotProcessMainLoop.js index 231114ab7..30f370b90 100644 --- a/ExtractionBotProcessMainLoop.js +++ b/ExtractionBotProcessMainLoop.js @@ -77,7 +77,7 @@ /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const UTILITIES = require(ROOT_DIR + 'Utilities'); + const UTILITIES = require(ROOT_DIR + 'CloudUtilities'); const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage'); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); const STATUS_REPORT = require(ROOT_DIR + 'StatusReport'); diff --git a/IndicatorBotProcessMainLoop.js b/IndicatorBotProcessMainLoop.js index 3fff992c4..5b3502059 100644 --- a/IndicatorBotProcessMainLoop.js +++ b/IndicatorBotProcessMainLoop.js @@ -67,7 +67,7 @@ /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const UTILITIES = require(ROOT_DIR + 'Utilities'); + const UTILITIES = require(ROOT_DIR + 'CloudUtilities'); const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage'); const FILE_STORAGE = require(ROOT_DIR + 'FileStorage'); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); diff --git a/Project.njsproj b/Project.njsproj index 3b2cc600c..cbeed4db3 100644 --- a/Project.njsproj +++ b/Project.njsproj @@ -58,7 +58,7 @@ Code - + diff --git a/StatusReport.js b/StatusReport.js index 691b136e3..819e88f88 100644 --- a/StatusReport.js +++ b/StatusReport.js @@ -32,7 +32,7 @@ /* Utilities needed. */ - let utilities = UTILITIES.newUtilities(bot); + let utilities = UTILITIES.newCloudUtilities(bot); /* Storage account to be used here. */ diff --git a/TradingBotProcessMainLoop.js b/TradingBotProcessMainLoop.js index 3e6d1ac46..edf2dff5b 100644 --- a/TradingBotProcessMainLoop.js +++ b/TradingBotProcessMainLoop.js @@ -67,7 +67,7 @@ /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const UTILITIES = require(ROOT_DIR + 'Utilities'); + const UTILITIES = require(ROOT_DIR + 'CloudUtilities'); const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage'); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); const POLONIEX_CLIENT_MODULE = require(ROOT_DIR + 'PoloniexAPIClient'); diff --git a/web.config.json b/web.config.json new file mode 100644 index 000000000..e20858a01 --- /dev/null +++ b/web.config.json @@ -0,0 +1,40 @@ +{ + "webModules": [ + { + "name": "Assistant" + }, + { + "name": "BlobStorage" + }, + { + "name": "Context" + }, + { + "name": "DataDependencies" + }, + { + "name": "ExchangeAPI" + }, + { + "name": "PoloniexAPIClient" + }, + { + "name": "StatusDependencies" + }, + { + "name": "StatusReport" + }, + { + "name": "CloudUtilities" + }, + { + "name": "ExtractionBotProcessMainLoop" + }, + { + "name": "IndicatorBotProcessMainLoop" + }, + { + "name": "TradingBotProcessMainLoop" + } + ] +} \ No newline at end of file