Small fixes
This commit is contained in:
1 parent
7ca5321017
commit
11362d635d
2 files changed
+4
-4
No files matched your search
@@ -8,7 +8,7 @@ const axios = require('./scripts/services/axios.js');
|
|||||||
const { saveBufferToFile, loadBufferFromFile, sendBulkReport, BULK_REPORT_BUFFER } = require('./scripts/services/bulk.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 { reportedIPs, loadReportedIPs, saveReportedIPs, isIPReportedRecently, markIPAsReported } = require('./scripts/services/cache.js');
|
||||||
const { refreshServerIPs, getServerIPs } = require('./scripts/services/ipFetcher.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 sendWebhook = require('./scripts/services/discordWebhooks.js');
|
||||||
const isLocalIP = require('./scripts/utils/isLocalIP.js');
|
const isLocalIP = require('./scripts/utils/isLocalIP.js');
|
||||||
const log = require('./scripts/utils/log.js');
|
const log = require('./scripts/utils/log.js');
|
||||||
@@ -141,7 +141,7 @@ const processLogLine = async (line, test = false) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
log(`Version ${version} - ${repoURL}`);
|
log(`Version ${version} - ${repoFullUrl}`);
|
||||||
|
|
||||||
loadReportedIPs();
|
loadReportedIPs();
|
||||||
loadBufferFromFile();
|
loadBufferFromFile();
|
||||||
@@ -188,7 +188,7 @@ const processLogLine = async (line, test = false) => {
|
|||||||
if (DISCORD_WEBHOOKS_ENABLED && DISCORD_WEBHOOKS_URL) await require('./scripts/services/summaries.js')();
|
if (DISCORD_WEBHOOKS_ENABLED && DISCORD_WEBHOOKS_URL) await require('./scripts/services/summaries.js')();
|
||||||
|
|
||||||
// Ready
|
// 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);
|
log(`Ready! Now monitoring: ${UFW_LOG_FILE}`, 1);
|
||||||
process.send && process.send('ready');
|
process.send && process.send('ready');
|
||||||
})();
|
})();
|
||||||
|
|||||||
+1
-1
Submodule scripts updated: 6fc0a1b39b...f112f0e8c1.
Reference in new issue
Block a user