From 11362d635d4bfbe2acfd4a9769a7fe726f3e43be Mon Sep 17 00:00:00 2001 From: Sefinek Date: Mon, 28 Apr 2025 09:01:43 +0200 Subject: [PATCH] Small fixes --- index.js | 6 +++--- scripts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index f5861e8..4efb802 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const axios = require('./scripts/services/axios.js'); const { saveBufferToFile, loadBufferFromFile, sendBulkReport, BULK_REPORT_BUFFER } = require('./scripts/services/bulk.js'); const { reportedIPs, loadReportedIPs, saveReportedIPs, isIPReportedRecently, markIPAsReported } = require('./scripts/services/cache.js'); const { refreshServerIPs, getServerIPs } = require('./scripts/services/ipFetcher.js'); -const { version, repoName, repoURL } = require('./scripts/utils/repo.js'); +const { version, name, repoFullUrl } = require('./scripts/utils/repo.js'); const sendWebhook = require('./scripts/services/discordWebhooks.js'); const isLocalIP = require('./scripts/utils/isLocalIP.js'); const log = require('./scripts/utils/log.js'); @@ -141,7 +141,7 @@ const processLogLine = async (line, test = false) => { }; (async () => { - log(`Version ${version} - ${repoURL}`); + log(`Version ${version} - ${repoFullUrl}`); loadReportedIPs(); loadBufferFromFile(); @@ -188,7 +188,7 @@ const processLogLine = async (line, test = false) => { if (DISCORD_WEBHOOKS_ENABLED && DISCORD_WEBHOOKS_URL) await require('./scripts/services/summaries.js')(); // Ready - if (SERVER_ID !== 'development') await sendWebhook(`[${repoName}](${repoURL}) has been successfully started on the device \`${SERVER_ID}\`.`, 0x59D267); + await sendWebhook(`[${name}](${repoFullUrl}) has been successfully started on the device \`${SERVER_ID}\`.`, 0x59D267); log(`Ready! Now monitoring: ${UFW_LOG_FILE}`, 1); process.send && process.send('ready'); })(); diff --git a/scripts b/scripts index 6fc0a1b..f112f0e 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 6fc0a1b39b93141453604bdc92c650441ede565b +Subproject commit f112f0e8c17f2d52fce1a26280d6c07b9777ecbe