I have code to where my bot gets pinged every 5 minutes to keep it “alive”. but when the bot is running for 24 hours it shuts down. this is the code
const http = require('http');
const express = require('express');
app.get("/", (request, response) => {
console.log(Date.now() + " Ping Received");
response.sendStatus(200);
});
app.listen(process.env.PORT);
setInterval(() => {
http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
}, 280000);
any help would be great!