first commit

This commit is contained in:
Patrick
2026-05-01 19:34:31 +02:00
commit 83d6fe525f
8 changed files with 1040 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
require('dotenv').config();
let pingUrl = (process.env.PING_DOMAIN || "").trim();
function startPingLoop() {
setInterval(async () => {
try {
await fetch(pingUrl);
} catch (err) {
console.error(`[PING] Error: ${err}`);
}
}, 20000);
}
module.exports = { startPingLoop };