is there any way through which I can make my script run 24*7 without logging in to Replit.
use a pinger such as https://ping.matdoes.dev.
Edit: so that is only for websites. Instead, make another file and insert this code:
from flask import Flask from threading import Thread app = Flask(__name__) @app.route('/') def home(): return "hello world" def run(): app.run(host='0.0.0.0',port=8080) def keep_alive(): t = Thread(target=run) t.start()
Then import the
keep_alive function and run it before the rest of your code. Then, add the url to the pinger thingy.
Edit 2: it seems that you already have this in your code.