Ask coding questions

← Back to all posts
Keeping Repl Running
h
CubeyTheCube (24)

I have a repl that I need to run with my computer off, but I can't find a way that works. I tried https://ping.matdoes.dev/# but it does not work. I've seen Uptime Robot but I don't want to go through the painful process of creating an account. Anyone know how I can solve my problem?

Comments
hotnewtop
LeviathanCoding (286)

I don't get why a lot of people don't want to create an account on uptimeRobot. Once I knew that it'd make a repl run forever, I created an account immediately.

SushantShah (0)

hey cubey!!! remeber me on discord??? milad's friend

Coder100 (17020)

It's not working because you don't have an HTTP server...
Add this to your code (line 21):

require('http').createServer((_, res) => res.end("w")).listen(8080)

Then, use uptimerobot to ping https://testetstetsttetsttettstettess.cubeythecube.repl.co.

For your ease, you can also invite me to your repl and I will do it for you

CubeyTheCube (24)

@Coder100 Thanks so much! I'll try that.

Coder100 (17020)

awesome it looks working to me @CubeyTheCube

Coder100 (17020)

no sensitive info detected scamming fruitless @realTronsi

CubeyTheCube (24)

@Coder100 I don't want to use Uptime Robot though... and the pinging repl is still not working...

Coder100 (17020)

make sure you don't stop the repl @CubeyTheCube

CubeyTheCube (24)

@Coder100 Um, I'm trying to keep the repl on even if I stop it.

Coder100 (17020)

@CubeyTheCube won't work, it you can't press the stop button or else the server shuts down

Coder100 (17020)

i mean if you want to keep your repl 'up' doesn't that mean you want your repl to keep running? @CubeyTheCube

CubeyTheCube (24)

"no sensitive info detected scamming fruitless @realTronsi"

@Coder100 wth

CubeyTheCube (24)

@Coder100 yes, but i want to turn my computer off

Coder100 (17020)

turning your computer off will not effect your repl @CubeyTheCube

Coder100 (17020)

as long as you don't press the stop button it will perpetually run @CubeyTheCube

CubeyTheCube (24)

@Coder100 yes it does lol. I turned it off last night and it stopped running.

realTronsi (912)

@CubeyTheCube use uptime bot ffs take it or leave it

Coder100 (17020)

your computer didn't do that, when you closed the tab the repl automatically stops unless you have the HTTP server @CubeyTheCube

CubeyTheCube (24)

@Coder100 OHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH so i keep the tab open, and close my computer, and the repl stays on?

realTronsi (912)

@CubeyTheCube if you want to achieve something why are you "too lazy to make an account".

Coder100 (17020)

hmm how else to say it, ig you read this article @CubeyTheCube

CubeyTheCube (24)

@realTronsi If you had a choice to not create an account for some random website would you still do it?

realTronsi (912)

@CubeyTheCube it's the best choice for these kind of things, and it is not some "random website". There is a reason uptime bots exists. The login process is also very fast

Coder100 (17020)

@realTronsi yeah i dont think you need to confirm email/lax security

realTronsi (912)

@Coder100 dafuq an article with repl.it in it? must be fake news