From d31f6a9b190f857a76d1838be78202269d37e372 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 18 Apr 2020 08:03:33 +0200 Subject: [PATCH] Update User.Bot.js --- Check-Webhook/User.Bot.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Check-Webhook/User.Bot.js b/Check-Webhook/User.Bot.js index 171f9e0..f447c8b 100644 --- a/Check-Webhook/User.Bot.js +++ b/Check-Webhook/User.Bot.js @@ -4,7 +4,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, FILE_S const FULL_LOG = true; const LOG_FILE_CONTENT = false; const MODULE_NAME = "User Bot"; - const FOLDER_NAME = "Signals"; + const FOLDER_NAME = "External-Signals"; thisObject = { initialize: initialize, @@ -63,8 +63,9 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, FILE_S thisReport = statusDependencies.statusReports.get(reportKey) if (thisReport.file.lasrRun !== undefined) { + let fileName = 'Data.json' - let filePath = bot.filePathRoot + "/Output/" + FOLDER_NAME + let filePath = bot.filePathRoot + "/Output/" + FOLDER_NAME + "/" + 'Single-File' fileStorage.getTextFile(filePath + '/' + fileName, onFileReceived); function onFileReceived(err, text) { @@ -136,7 +137,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, FILE_S } let fileName = 'Data.json' - let filePath = bot.filePathRoot + "/Output/" + FOLDER_NAME + let filePath = bot.filePathRoot + "/Output/" + FOLDER_NAME + "/" + 'Single-File' fileStorage.createTextFile(filePath + '/' + fileName, fileContent + '\n', onFileCreated); function onFileCreated(err) {