[PATCHED] How to Run any Script 24/7 for Free (Replit)

Sdílet
Vložit
  • čas přidán 25. 08. 2024
  • In this #shorts video i show you how to run your python or nodejs application for all the time 24/7, even your PC is turned off. I use replit and uptimerobot to run my scripts.
    Our Discord - / discord
    Telegram - t.me/gunther_s...
    Links:
    1. replit.com
    2. uptimerobot.com
    (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()
    #python #programming #nodejs #coding #discord #replit #viral #video #viralvideo #viralshort

Komentáře • 210

  • @GuntherSuper
    @GuntherSuper  Před rokem +281

    Links:
    1. replit.com
    2. uptimerobot.com
    (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()

    • @xShadowXD
      @xShadowXD Před rokem +4

      i can't find the webview or the link

    • @TheUntitledz
      @TheUntitledz Před rokem

      Bruh I cant copy it

    • @SabaSo2
      @SabaSo2 Před rokem +5

      from flask import Flask, render_template
      from threading import Thread
      app = Flask(__name__)
      @app.route('/')
      def index():
      return "alive"
      def rün():
      app.run(host='0.0.0.0',port=8080)
      def keep_alove():
      t = Thread(Target=rün)
      t.start()

    • @Notwhalecoolos
      @Notwhalecoolos Před rokem

      🎉

    • @Clintonlelop
      @Clintonlelop Před rokem

      Hoe to copy 😢

  • @GANZzzx
    @GANZzzx Před 10 měsíci +10

    wow that's work thank you very much,your make my day❤

  • @high.notes1
    @high.notes1 Před rokem +36

    BRO THANK U SO MUCH MY SCRIPT WASNT WORKING CAUSE OF NIX MIGRATION AND THIS ACTUALLY FIXED IT TY I LOVE U

    • @kunal_dev7208
      @kunal_dev7208 Před rokem +2

      Hi same, my script is not working as it shows : we are updatating your project. Can you tell me HOW can I stop it to MIgrate to NIX

  • @Rohit-pv4ph
    @Rohit-pv4ph Před 7 měsíci +76

    It's outdated now, replit updated their policies. It doesn't work

    • @icy4399
      @icy4399 Před 7 měsíci +3

      have another alternative?

    • @akmyths2391
      @akmyths2391 Před 7 měsíci +7

      Yeah mine just stopped working

    • @Rohit-pv4ph
      @Rohit-pv4ph Před 7 měsíci

      @@akmyths2391 yeah same, I don't know any good alternatives

    • @S_Rupom
      @S_Rupom Před 7 měsíci +1

      Right

    • @LILxbidox
      @LILxbidox Před 7 měsíci +1

      found anything?

  • @TheoMantos
    @TheoMantos Před rokem +3

    Thank you so much man!! it works still!

  • @ArcLeakers
    @ArcLeakers Před rokem +11

    I have 1 question do you need to put that code then the webview tab will show up?

  • @user-dh9sq1yf7f
    @user-dh9sq1yf7f Před 10 měsíci +3

    Thank you so much ❤

  • @johnregie1413
    @johnregie1413 Před rokem +12

    how about the webview?

  • @fxreayeebs
    @fxreayeebs Před rokem +1

    Thx so much. I really appreciate it!

  • @Dailylami
    @Dailylami Před 10 měsíci +1

    Thanks bro good vidéo

  • @barishni-blin
    @barishni-blin Před 11 měsíci +3

    OMG THANKS!!

  • @SwaroopVemula
    @SwaroopVemula Před 7 měsíci +2

    This trick is not working now. 😢

  • @sharifulislam7441
    @sharifulislam7441 Před rokem +4

    Thank you. Is there any way to keep running shell 24/7 in replit? I need to run a command in shell that needs couple of week to complete!

    • @DominicNweze
      @DominicNweze Před rokem

      Shell Script, I didn't know shell could make a server of their own

    • @thenextbigthing1393
      @thenextbigthing1393 Před 8 měsíci

      Maybe you can create a php server on replit that also executes shell commands

  • @user-qr1gi8ly9i
    @user-qr1gi8ly9i Před rokem +10

    Can you repeat the explanation in Python?

  • @Voramae
    @Voramae Před 10 měsíci +3

    where need I insert the token in js

  • @cheeseylinushorts
    @cheeseylinushorts Před 11 měsíci +2

    thank you bro

  • @samuelraposo4186
    @samuelraposo4186 Před měsícem

    I see you guys were using an local host on the port 8080 impressive

  • @tectectonic1701
    @tectectonic1701 Před rokem

    Thanks dawg it worked

    • @NotWizPlayz
      @NotWizPlayz Před rokem

      Yo can u help

    • @DrWoofOfficial
      @DrWoofOfficial Před rokem +1

      Wait how... someone said it doesn't work anymore

    • @0jpgYT
      @0jpgYT Před 10 měsíci

      @@DrWoofOfficial still work bro it always work

  • @chittyrobo2004
    @chittyrobo2004 Před rokem +3

    Thanks Bro

  • @RaniDevi-rx3zl
    @RaniDevi-rx3zl Před měsícem +1

    Not working it stop after some time😢

  • @ModeratorRezzy
    @ModeratorRezzy Před 10 měsíci +1

    can you make one for vscode but i will use this later in my future projects❤

  • @mohammed6560
    @mohammed6560 Před rokem +2

    worked!!!

  • @bhai431
    @bhai431 Před 5 měsíci +1

    *Pls make step by step video*

  • @glitchy5420
    @glitchy5420 Před rokem +28

    This does not work anymore. Replit automatically “stops” your connection after 24 hours elapse.

    • @GuntherSuper
      @GuntherSuper  Před rokem +6

      It's working for me, my steam and discord are online now

    • @glitchy5420
      @glitchy5420 Před rokem +6

      @@GuntherSuper I can safely say it won’t work for the vast majority of people, and most discord bot tutorials have shifted to using other ways, or other sites.

    • @mickmickymick6927
      @mickmickymick6927 Před rokem +2

      @@glitchy5420 what ways can you do it now?

    • @glitchy5420
      @glitchy5420 Před rokem +2

      @@mickmickymick6927 Paying for replit, or hosting on other platforms. I think “Glitch” (the fish one?) still works.

    • @MauriceFilehunter
      @MauriceFilehunter Před rokem +2

      ​@@glitchy5420I think they started Payment Only too

  • @monarch6t9
    @monarch6t9 Před rokem +1

    What do i do my code works but suddenly stops, yes i have uptime robot on, but suddenly it just dies idk why

    • @monarch6t9
      @monarch6t9 Před rokem

      its irregular, it dies sometimes and sometimes it doesn't

  • @thelarkgaming2203
    @thelarkgaming2203 Před rokem +1

    Does this works for Google Collab too?

  • @homeaccounttt
    @homeaccounttt Před rokem

    thankyouuuuuuuuuuuuuuuuuuuu so much bro

  • @RK9997
    @RK9997 Před 6 měsíci +1

    How do i get a link?

  • @arctrooper7648
    @arctrooper7648 Před rokem +3

    how do I get the link in a replit project

    • @susguy446
      @susguy446 Před rokem

      Its in the adress bar 💀

    • @theoceancookie
      @theoceancookie Před rokem

      @@susguy446 im not getting webview for some reason

  • @murri3193
    @murri3193 Před 9 měsíci

    how do i see the url from replit? it doesnt show it for me
    i only see a slash

  • @Popcat-jb2wh
    @Popcat-jb2wh Před rokem

    How to get webview ?I’ve done all step but there no webview on my right windows.

  • @Abhiyash69
    @Abhiyash69 Před rokem +2

    thanks

  • @Grzo_76
    @Grzo_76 Před 27 dny

    Dose it work for minecraft servers??

  • @baibaibaiiiii
    @baibaibaiiiii Před 8 měsíci

    anyone knows why bot keeps going offline for me even after this?

  • @user-nq9es5jh1g
    @user-nq9es5jh1g Před 8 měsíci

    what if i only use replit, does bot won't run 24/7?

  • @saurabhsatpute2423
    @saurabhsatpute2423 Před 8 měsíci

    suggest a alternative for replit

  • @MystiqueGamerOfficial
    @MystiqueGamerOfficial Před 7 měsíci +1

    It's dosent work if you want free host then mention me

  • @cahesaku
    @cahesaku Před rokem

    Can someone tell me why you need uptimerobot

  • @Laryval27
    @Laryval27 Před rokem +1

    For WhatsApp?
    As a chat bot?

  • @bobbyrathor7509
    @bobbyrathor7509 Před rokem

    how will it work for karuta autodrop n grabs?

  • @NiiKii_Chan01
    @NiiKii_Chan01 Před 9 měsíci

    This file how to combine mongodb url hosting cloud server link ?

  • @thangtienngao
    @thangtienngao Před 24 dny

    don't work

  • @thebluescratchy2009
    @thebluescratchy2009 Před rokem

    does this work on php? im running a wiki with mediawiki software (gosh i dont wanna use fandom) and im looking for something that is not discord bot-related

  • @Kochambambi123
    @Kochambambi123 Před 3 měsíci

    A nie lepiej visual code pobrać i tam odpalać bota?

  • @chillanomican
    @chillanomican Před 8 měsíci

    i cant find webview on a python file

  • @consult.
    @consult. Před rokem +1

    uptimerobot is terrible, once i closed out the uptimerobot tab it stopped my bot

    • @Jjer.z
      @Jjer.z Před rokem +2

      it's not uptime's fault lol

  • @lokmankhan3626
    @lokmankhan3626 Před 9 měsíci

    Work🙃

  • @PirateSimulator
    @PirateSimulator Před rokem

    I use my compiler as popup for mobile than it doesnt stop

  • @theanonymous6198
    @theanonymous6198 Před rokem

    How to use it in python telegram bot

  • @angrygamer5543
    @angrygamer5543 Před rokem

    Can u please tell me how to import the script to the index.js file?

    • @hazush_
      @hazush_ Před rokem

      var keep_alive = require('./link-to-your-script')
      (and its done, just the line)

  • @Zecoder
    @Zecoder Před rokem

    so.. how can i run my project?

  • @seamless_tube
    @seamless_tube Před rokem

    Bro your telling very fast could you upload video with low speed plz

  • @denzelit8074
    @denzelit8074 Před rokem +1

    no web view for me???

  • @user-mq9jf4go2b
    @user-mq9jf4go2b Před rokem

    i cant get the webview link anyone can help?

  • @v1Dice
    @v1Dice Před 9 měsíci

    does it work on codesandbox

  • @iqminecraft6985
    @iqminecraft6985 Před rokem

    Can i setting status?

  • @hz4929
    @hz4929 Před 9 měsíci

    dude my webview link only says / am i supposed to put that in my Uptimerobot monitor?

    • @GuntherSuper
      @GuntherSuper  Před 9 měsíci

      click "new tab" in the right side of url. You ll get the link you need

    • @Paulik76910
      @Paulik76910 Před 9 měsíci +1

      ​@@GuntherSuperBro, thank you, I searched for 4 MONTHS to find out this😁

  • @FructoseDev
    @FructoseDev Před rokem

    dude for js you showed the URL, but for my python discord bot, i don't know what to paste the URL As, Could you please tell me why??? @Gunther Please Answer My Question.

    • @GuntherSuper
      @GuntherSuper  Před rokem

      did u add keep_alive.js? if u did open webview tab

    • @orangefigs
      @orangefigs Před rokem

      ​@@GuntherSuper How do you open the webview tab?

    • @Krakenplayz4
      @Krakenplayz4 Před rokem

      ​@@orangefigsit opens automayically id you run the code by clicking ''run''

  • @farhanaislamsamiya73
    @farhanaislamsamiya73 Před 7 měsíci

    it doesn't work now.

  • @blntzi
    @blntzi Před 4 měsíci

    can u do a auto skull discord script ?

  • @thavunaik9757
    @thavunaik9757 Před rokem

    Its not working anymore😢

  • @Hprpsr500
    @Hprpsr500 Před rokem

    why my bot is not onlinee

  • @kapp2026
    @kapp2026 Před 7 měsíci

    Plzzz new méthode he does't work in 2024

  • @STORM-jd9dm
    @STORM-jd9dm Před rokem

    it didnt work help
    it closed

  • @w7m220
    @w7m220 Před rokem +2

    Make another tutorial please, and no replit. My script will be skidded. Python too ❤🎉

  • @Iamnotale
    @Iamnotale Před 8 měsíci

    for bash?

  • @mayorc
    @mayorc Před rokem

    What modules are supported in python, can i use aiogram? On Replit.

    • @GuntherSuper
      @GuntherSuper  Před rokem

      You can use it, you Can use it even with selenium

    • @mayorc
      @mayorc Před rokem

      @@GuntherSuper Cool, selenium it's supported as well! It's 3.0 aiogram supported or just 2.0?

  • @Ernyzas
    @Ernyzas Před rokem

    Nice

  • @mxsowrove1578
    @mxsowrove1578 Před 8 měsíci

    Do it show telegram on online

  • @S_Rupom
    @S_Rupom Před 7 měsíci

    Not working now

  • @CakeKingYTS
    @CakeKingYTS Před rokem

    I cant copy this.

  • @denzelit8074
    @denzelit8074 Před rokem

    can't g
    et it to work

  • @Duluper
    @Duluper Před rokem

    Well I have a C# project :)

  • @aiainul3063
    @aiainul3063 Před rokem +1

    still work?

  • @user-en4lv9iv8u
    @user-en4lv9iv8u Před rokem +6

    bro
    what is this problem
    Traceback (most recent call last):
    File "main.py", line 1, in
    from keep_alive import keep_alive
    File "/home/runner/Cinemaz-ok/keep_alive.py", line 1, in
    from flask import Flask,render_template
    ModuleNotFoundError: No module named 'flask'

  • @zirconwanted
    @zirconwanted Před rokem

    Python please?

  • @urrrees520
    @urrrees520 Před rokem +1

    Did this for a discord nitro sniper and got 3 months nitro once in a year

  • @HakuroHunggg
    @HakuroHunggg Před 11 měsíci

    What about typescript

  • @audiogameyt
    @audiogameyt Před rokem

    dont i have to put my token somewhere?

  • @k5wdk
    @k5wdk Před rokem

    You need to paste in a token 😂

    • @sweatnico
      @sweatnico Před rokem +1

      No, not with enviroment, and second, it‘s safer to not paste the token, because it would be public without spending money and people can easily can get into your account and get you in big trouble.

    • @sweatnico
      @sweatnico Před rokem +1

      And it would be public in the video

  • @XRDEnDeRmAn
    @XRDEnDeRmAn Před 11 měsíci

    00:00

  • @Zecoder
    @Zecoder Před rokem

    bro wtf is this video, it's so confusing

  • @santtsz07_
    @santtsz07_ Před 10 měsíci

    00:01

  • @itsyaboivoid
    @itsyaboivoid Před rokem +1

    Oh god, not replit again. Replit is BAD platform

    • @GuntherSuper
      @GuntherSuper  Před rokem

      Its free and allows you to run anything you want

    • @Mamamo-lb5po
      @Mamamo-lb5po Před rokem

      ​@@itsyaboivoid vsc free?

    • @itsyaboivoid
      @itsyaboivoid Před rokem

      @@Mamamo-lb5po yes

    • @Mamamo-lb5po
      @Mamamo-lb5po Před rokem

      @@itsyaboivoid do you have a tutorial video how to create ai in messenger for free and active 24/7 sir

    • @ChariTT
      @ChariTT Před rokem

      @@itsyaboivoid dude, in what way are you supose to use visual studio code with a 24/7 hosting server, wtf

  • @ihenners_
    @ihenners_ Před rokem +1

    I wouldn’t do this - very unreliable and there’s high chance your script could be exposed to others (bye bye discord token)

    • @heyimzoid
      @heyimzoid Před rokem +1

      There is something called making a secret key 😐

    • @ihenners_
      @ihenners_ Před rokem

      @@heyimzoid what?

    • @heyimzoid
      @heyimzoid Před rokem +3

      @@ihenners_ replit has a feature where you can make a secret key and only you can see it and no one else so all you have to do is make a key and make value as your discord token then use the key name in your script

  • @mxsowrove1578
    @mxsowrove1578 Před 8 měsíci

    Hi

  • @kzokthreesixzeros7025
    @kzokthreesixzeros7025 Před 11 měsíci

    0:20

  • @potatokujo4673
    @potatokujo4673 Před rokem

    0:01

  • @glitchdudeyt4316
    @glitchdudeyt4316 Před rokem

    HOW THE FUCK DO YOU GET WEBVIEW?!!!?!

    • @LILxbidox
      @LILxbidox Před rokem

      bro create a keep alive fine then copy past the codes there

  • @freedmaaan
    @freedmaaan Před rokem

    Mine stops after like 1 hour, any fixes?

    • @MiirFy
      @MiirFy Před rokem

      UptimeRobot stopped to support Replit since April 2022... That's why

    • @freedmaaan
      @freedmaaan Před rokem

      @@MiirFy mine stops from replit now from UptimeRobot

  • @pixeledpic1846
    @pixeledpic1846 Před rokem +1

    Traceback (most recent call last):
    File "main.py", line 6, in
    from keep_alive import keep_alive
    File "/home/runner/WiryNavyArchives/keep_alive.py", line 1
    keep_alive.py:
    ^
    SyntaxError: invalid syntax
    Gives me this error

  • @grimgrothse
    @grimgrothse Před 8 měsíci

    does this still work? @GuntherSuper

  • @dankYbat
    @dankYbat Před rokem

    thanks