Advertisement
Guest User

Untitled

a guest
Aug 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const http = require('http');
  2. const express = require('express');
  3. const app = express();
  4. app.get("/", (request, response) => {
  5. console.log(Date.now() + " Ping Received");
  6. response.sendStatus(200);
  7. });
  8. app.listen(process.env.PORT);
  9. setInterval(() => {
  10. http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
  11. }, 280000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement