diff --git a/index.js b/index.js index 8acc37a..81a065c 100644 --- a/index.js +++ b/index.js @@ -140,10 +140,13 @@ const processLogLine = async line => { }); // Auto updates - if (AUTO_UPDATE_ENABLED && AUTO_UPDATE_SCHEDULE) await require('./scripts/services/updates.js')(); + if (AUTO_UPDATE_ENABLED && AUTO_UPDATE_SCHEDULE && SERVER_ID !== 'development') await require('./scripts/services/updates.js')(); if (DISCORD_WEBHOOKS_ENABLED && DISCORD_WEBHOOKS_URL) await require('./scripts/services/summaries.js')(); - await discordWebhooks(0, `[UFW-AbuseIPDB-Reporter](https://github.com/sefinek/UFW-AbuseIPDB-Reporter) has been successfully launched on the device \`${SERVER_ID}\`.`); + // Final + if (SERVER_ID !== 'development') { + await discordWebhooks(0, `[UFW-AbuseIPDB-Reporter](https://github.com/sefinek/UFW-AbuseIPDB-Reporter) has been successfully launched on the device \`${SERVER_ID}\`.`); + } log(0, `Ready! Now monitoring: ${UFW_LOG_FILE}`); log(0, '====================================================================='); diff --git a/scripts b/scripts index de024c3..81d562f 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit de024c3f82160ada8f65f645a79d45533a96b41c +Subproject commit 81d562fea99763807a15940658e21bf2c6ffa57c