feat: initialize Nostr job on server start and log configuration details

This commit is contained in:
besoeasy
2026-01-01 09:34:03 +05:30
parent bc287d63cb
commit 74e980b2e0

1
app.js
View File

@@ -71,6 +71,7 @@ const server = app.listen(PORT, HOST, () => {
let nostrTimers = { discovery: null, pinner: null };
if (NPUB) {
runNostrJob(NPUB); // Initial run
nostrTimers.discovery = setInterval(() => runNostrJob(NPUB), NOSTR_CHECK_INTERVAL_MS);
nostrTimers.pinner = setInterval(pinnerJob, PINNER_INTERVAL_MS);
console.log(`[STARTUP] NOSTR_ENABLED npub=${NPUB} discovery_interval_ms=${NOSTR_CHECK_INTERVAL_MS} pinner_interval_ms=${PINNER_INTERVAL_MS}`);