Skip to content
← Back to Community
Is there a way to keep a repl running constantly?
Profile icon
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
Profile icon
waxim110
Profile icon
2397853724985
Profile icon
8dAudio
Profile icon
bobjeffco
Profile icon
MarblesAndMore
Profile icon
SpaceFire
Comments
hotnewtop
Profile icon
CoolJames1610

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

Profile icon
thenullified

@CoolJames1610 how do you do that?

Profile icon
Jakeyboi

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

Profile icon
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.

Profile icon
Bentley100Studi

@CoolJames1610 UptimeRobot makes your bot unstable I would suggest using https://console.cron-job.org/ or Freshping or apptime.

Profile icon
AM44

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

Profile icon
CoolJames1610
Profile icon
DreppOnGitHub

Im using js this wont help

Profile icon
JeremyMcDonough
Profile icon
ebisintei

Yes there is a way. Go and fuck the project "python always running" and use the "uptimerobot"

Profile icon
Mixxer

From a discord bot developer, As I constantly need to shut my laptop and close replit...
I use CronJobs!
It's amazing!
Just set it to run every minute.

Profile icon
JakeTaylor11

@Mixxer How did you accomplish that?

Profile icon
Mixxer

@JakeTaylor11
I created a expressJS server than I kept the repl running with UpTime robot.
And if UpTime Robot stops working, You can use Cron-Jobs!

Profile icon
Bentley100Studi

@Mixxer CronJobs is amazing

Profile icon
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.

Profile icon
JeswinSunsi

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

Profile icon
MarblesAndMore

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

Profile icon
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.

Profile icon
RahulDumbman

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

Profile icon
8dAudio

use http
@RahulPlays

Profile icon
ravishersingh1

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

Profile icon
ParvaP

@ravishersingh1 How dod you do this?

Profile icon
sethbowers97

@MarblesAndMore repl does not take place on your local machine