hi, im currently developing a Discord bot, but it goes offline, even with UptimeRobot.
i have done the following:
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello, world!');
});
app.listen(3000, () => {
console.log('Server started on port 3000');
});
and put my project’s url into uptimerobot. however, every morning when i wake up, my bot is offline. this doesn’t happen during the day when i keep the repl tab open.
any idea why this is happening, and possible solutions?
thank you.