@@ -66,17 +66,6 @@ console.log(`Monitoring started
66
66
- Display SHA ID: ` + SHA ) ;
67
67
68
68
console . log ( )
69
- if ( DISABLE_STARTUP_MSG . toLowerCase ( ) != 'true' ) {
70
- send ( `Monitoring started
71
- -- Version: ` + pjson . version + `
72
- -- Messaging platform: ` + MESSAGE_PLATFORM . split ( "@" ) [ 0 ] + `
73
- -- Polling period: ` + PERIOD + ` seconds` + `
74
- -- Only offline state monitoring: ` + ONLY_OFFLINE_STATES + `
75
- -- Only include labelled containers: ` + LABEL_ENABLE + `
76
- -- Do not monitor 'Exited': ` + EXCLUDE_EXITED + `
77
- -- Disable Startup Messages: ` + DISABLE_STARTUP_MSG + `
78
- -- Display SHA ID: ` + SHA ) ;
79
- }
80
69
81
70
async function sendTelegram ( message ) {
82
71
let notify = new Telegram ( { token : msgDetails [ 1 ] , chatId : msgDetails [ 2 ] } ) ;
@@ -268,6 +257,16 @@ async function list() {
268
257
console . log ( " - Currently monitoring " + newConArray . length + " (running) containers" ) ;
269
258
if ( DISABLE_STARTUP_MSG . toLowerCase ( ) != 'true' ) {
270
259
//send("Currently monitoring " + newConArray.length + " (running) containers");
260
+ messages = `Monitoring started
261
+ -- Version: ` + pjson . version + `
262
+ -- Messaging platform: ` + MESSAGE_PLATFORM . split ( "@" ) [ 0 ] + `
263
+ -- Polling period: ` + PERIOD + ` seconds` + `
264
+ -- Only offline state monitoring: ` + ONLY_OFFLINE_STATES + `
265
+ -- Only include labelled containers: ` + LABEL_ENABLE + `
266
+ -- Do not monitor 'Exited': ` + EXCLUDE_EXITED + `
267
+ -- Disable Startup Messages: ` + DISABLE_STARTUP_MSG + `
268
+ -- Display SHA ID: ` + SHA + `
269
+ ` ;
271
270
messages += "Currently monitoring " + newConArray . length + " (running) containers" + "\r\n" ;
272
271
}
273
272
isFirstRun = false ;
0 commit comments