Ask coding questions

← Back to all posts
Is there a way to keep a repl running constantly?
SpaceFire

For a project i need to have replit running constantly. Is this acchievable? and how? This means its still on even if i close my laptop

Voters
8dAudio
bobjeffco
MarblesAndMore
SpaceFire
Comments
hotnewtop
CoolJames1610

For my Discord Bot, I use Flask and UpTimeRobot to keep the bot alive

thenullified

@CoolJames1610 how do you do that?

Jakeyboi

@CoolJames1610 I use UpTimeRobot, but the bot keeps forgetting other commands from other Repls.

sethbowers97

@Jakeyboi another problem with this method, which i have learned the hard way, is that each time uptime robot pings your repl, it essentially resents all processes. My code is a reactionary scanner, for example, and I pass a discord message to an infinite while loop. each time uptime robot pings my repl, the information from the original discord message is lost.

AM44

@CoolJames1610 im new to this can you please tell me which url im supposed to put on uptimebot and how to use flask.

CoolJames1610
DreppOnGitHub

Im using js this wont help

JeremyMcDonough
MarblesAndMore

I don't know if this is helpful but nothing can run while a computer is asleep or shut down, the only way is to keep it open and try and find a way so it doesn't sleep.

JeswinSunsi

@MarblesAndMore You sure abt that? Can't you just use something like UpTimeRobot to keep your server from sleeping?

MarblesAndMore

@JeswinSunsi Well I don't think I can get that on my computer so I was only really talking from experience I guess

JeswinSunsi

@MarblesAndMore Tbh u can, I just set it up. Go to uptimerobot, make a new monitor, set it to ping your repl server every five minutes.

RahulPlays

@JeswinSunsi Ping ?? or http ?? I saw in the article that they use http

8dAudio

use http
@RahulPlays

ravishersingh1

@MarblesAndMore This has been changed. you can run it 24/7 live. hosted in cloud in repl.it

ParvaP

@ravishersingh1 How dod you do this?

sethbowers97

@MarblesAndMore repl does not take place on your local machine