Skip to content

Instantly share code, notes, and snippets.

@Hacking-NASSA-with-HTML
Created April 3, 2024 11:53
Show Gist options
  • Save Hacking-NASSA-with-HTML/6eaf7896fc3496bc7e0f18ecca65c138 to your computer and use it in GitHub Desktop.
Save Hacking-NASSA-with-HTML/6eaf7896fc3496bc7e0f18ecca65c138 to your computer and use it in GitHub Desktop.
keepServerAlive.js
const wakeUpLazyAzz = async () => {
try {
const response = await fetch('https://render-back-end-nikky-pedia.onrender.com/')
// const body = await response.text()
// console.log(response.ok)
// console.log(response.status)
// console.log(body)
} catch (error) {
console.log(error)
}
}
(function loop() {
let wait = Math.floor(Math.random() * 300000) + 5000
setTimeout(function () {
wakeUpLazyAzz()
// console.log(wait)
loop()
}, wait)
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment