Discord.js bot not staying online with uptimerobot

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.

uptimerobot removed their support for pinging repls.

2 Likes

do you know of any websites that could be a replacement of what uptimerobot could do?

I use honeybadger.io, it lets you ping 5 domains for free and it works with replit.

2 Likes