Glitch.me project appears down even though not - Uptime robot

You’ve actually got Express already installed so that’s a start. You could put this in place by creating a file called server.js with these contents:

const express = require("express");
const app = express();

app.get("/", (request, response) => {
  console.log("Ping received!");
  response.sendStatus(200);
});

// listen for requests :)
const listener = app.listen(process.env.PORT, function() {
  console.log('Your app is listening on port ' + listener.address().port);
});

and then in bot.js include this line:
const server = require('./server.js');

Then your bot will have an empty web page responding at https://geniusbot.glitch.me that UptimeRobot can ping.

1 Like