Grow your YouTube views, likes and subscribers for free
Get Free YouTube Subscribers, Views and Likes

[Patched] How to Make Replit Code Run 24/7 (Python and NodeJS)

Follow
Gunther

In this video I show you how to run your Python or Nodejs script for all the time 24/7, even your PC is turned off. I use replit and uptimerobot to run my scripts. You can run discord bot 24/7 or telegram bot, any time boosts. how to make discord bot online 24/7

Our Discord   / discord  

Links:
1. replit.com
2. https://uptimerobot.com/?rid=7c9687c4...

(for nodejs) keep_alive.js:
var http = require('http');
http.createServer(function (req, res) {
res.write("I'm alive");
res.end();
}).listen(8080);

In the main file (index.js) add:
const keep_alive = require('./keep_alive.js')

(for python) keep_alive.py:
from flask import Flask,render_template
from threading import Thread
app = Flask(__name__)
@app.route('/')
def index():
return "Alive"
def run():
app.run(host='0.0.0.0',port=8080)
def keep_alive():
t = Thread(target=run)
t.start()

in the main py file add:
from keep_alive import keep_alive
keep_alive()


Timestamps:
0:00 Replit 24/7
0:31 Paid subscription
0:51 Replit NodeJS 24/7
1:56 Replit Python 24/7

Our Social:
Instagram   / gunther.super  
Discord server   / discord  
Telegram https://t.me/gunther_super
Steam https://steamcommunity.com/id/gunther...

#python #programming #nodejs #coding #discord #replit #viral #video #viralvideo #viralshort

posted by windowsevenwz