User can stop bot
This commit is contained in:
1 parent
45527b540b
commit
3275731c1a
3 files changed
+4
-3
No files matched your search
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user