diff --git a/index.js b/index.js index 82b467e..e1075df 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,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 discordWebhooks = require('./scripts/services/discordWebhooks.js'); +const sendWebhook = require('./scripts/services/discordWebhooks.js'); const config = require('./config.js'); const { version } = require('./package.json'); const { UFW_LOG_FILE, ABUSEIPDB_API_KEY, SERVER_ID, AUTO_UPDATE_ENABLED, AUTO_UPDATE_SCHEDULE, DISCORD_WEBHOOKS_ENABLED, DISCORD_WEBHOOKS_URL } = config.MAIN; @@ -235,7 +235,7 @@ const processLogLine = async (line, test = false) => { // 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}\`.`); + await sendWebhook(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}`); diff --git a/scripts b/scripts index ec1ff65..b7a660c 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit ec1ff65a8b276d1eef766731ce4d72fea6da1fcf +Subproject commit b7a660cd7ed103343ee0e61663094173d2785052