fix: keep process alive after initialization for continuous operation
This commit is contained in:
4
index.js
4
index.js
@@ -69,6 +69,10 @@ loadQuotes().then((quotes) => {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Keep process alive with periodic heartbeat
|
||||
setInterval(() => {}, 1000 * 60); // Heartbeat every minute
|
||||
console.log('Bot is running. Press Ctrl+C to exit.');
|
||||
}).catch(err => {
|
||||
console.error('Failed to load quotes:', err.message);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user