User can stop bot

This commit is contained in:
Luis Fernando Molina committed 2018-05-24 14:41:23 +02:00
1 parent 45527b540b
commit 3275731c1a
3 files changed
+4 -3

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
global.CURRENT_ENVIRONMENT = "Develop";
global.CURRENT_LOCATION = "Cloud";
global.SHALL_BOT_STOP = false;
process.on('uncaughtException', function (err) {
console.log('[INFO] Run -> uncaughtException -> err.message = ' + err.message);
+2 -2
View File
@@ -131,7 +131,7 @@
return;
}
if (FULL_LOG === true) {
if (LOG_FILE_CONTENT === true) {
logger.write("[INFO] initialize -> load -> onFileReceived -> Content received = " + text);
}
@@ -219,7 +219,7 @@
return;
}
if (FULL_LOG === true) {
if (LOG_FILE_CONTENT === true) {
logger.write("[INFO] save -> onFolderCreated -> onFileCreated -> Content written = " + fileContent);
}
+1 -1
View File
@@ -777,7 +777,7 @@
let configRead = JSON.parse(text);
if (configRead.stopGracefully === false) {
if (configRead.stopGracefully === false && global.SHALL_BOT_STOP === false) {
continueCallBack();
} else {
stopCallBack();