[PATCHED] How to Run any Script 24/7 for Free (Replit)
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
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()
i can't find the webview or the link
Bruh I cant copy it
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()
🎉
Hoe to copy 😢
wow that's work thank you very much,your make my day❤
Ghanta
BRO THANK U SO MUCH MY SCRIPT WASNT WORKING CAUSE OF NIX MIGRATION AND THIS ACTUALLY FIXED IT TY I LOVE U
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
It's outdated now, replit updated their policies. It doesn't work
have another alternative?
Yeah mine just stopped working
@@akmyths2391 yeah same, I don't know any good alternatives
Right
found anything?
Thank you so much man!! it works still!
I have 1 question do you need to put that code then the webview tab will show up?
Thank you so much ❤
how about the webview?
Thx so much. I really appreciate it!
Thanks bro good vidéo
OMG THANKS!!
This trick is not working now. 😢
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!
Shell Script, I didn't know shell could make a server of their own
Maybe you can create a php server on replit that also executes shell commands
Can you repeat the explanation in Python?
where need I insert the token in js
thank you bro
I see you guys were using an local host on the port 8080 impressive
Thanks dawg it worked
Yo can u help
Wait how... someone said it doesn't work anymore
@@DrWoofOfficial still work bro it always work
Thanks Bro
Not working it stop after some time😢
can you make one for vscode but i will use this later in my future projects❤
worked!!!
Bro
*Pls make step by step video*
This does not work anymore. Replit automatically “stops” your connection after 24 hours elapse.
It's working for me, my steam and discord are online now
@@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.
@@glitchy5420 what ways can you do it now?
@@mickmickymick6927 Paying for replit, or hosting on other platforms. I think “Glitch” (the fish one?) still works.
@@glitchy5420I think they started Payment Only too
What do i do my code works but suddenly stops, yes i have uptime robot on, but suddenly it just dies idk why
its irregular, it dies sometimes and sometimes it doesn't
Does this works for Google Collab too?
thankyouuuuuuuuuuuuuuuuuuuu so much bro
How do i get a link?
how do I get the link in a replit project
Its in the adress bar 💀
@@susguy446 im not getting webview for some reason
how do i see the url from replit? it doesnt show it for me
i only see a slash
How to get webview ?I’ve done all step but there no webview on my right windows.
thanks
Dose it work for minecraft servers??
anyone knows why bot keeps going offline for me even after this?
what if i only use replit, does bot won't run 24/7?
suggest a alternative for replit
It's dosent work if you want free host then mention me
pls
yeh bro
pls
Can someone tell me why you need uptimerobot
For WhatsApp?
As a chat bot?
how will it work for karuta autodrop n grabs?
This file how to combine mongodb url hosting cloud server link ?
don't work
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
no.
@@activsiongame oh well
A nie lepiej visual code pobrać i tam odpalać bota?
i cant find webview on a python file
uptimerobot is terrible, once i closed out the uptimerobot tab it stopped my bot
it's not uptime's fault lol
Work🙃
I use my compiler as popup for mobile than it doesnt stop
How to use it in python telegram bot
Can u please tell me how to import the script to the index.js file?
var keep_alive = require('./link-to-your-script')
(and its done, just the line)
so.. how can i run my project?
Bro your telling very fast could you upload video with low speed plz
no web view for me???
no web view for me too
i cant get the webview link anyone can help?
does it work on codesandbox
Can i setting status?
dude my webview link only says / am i supposed to put that in my Uptimerobot monitor?
click "new tab" in the right side of url. You ll get the link you need
@@GuntherSuperBro, thank you, I searched for 4 MONTHS to find out this😁
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.
did u add keep_alive.js? if u did open webview tab
@@GuntherSuper How do you open the webview tab?
@@orangefigsit opens automayically id you run the code by clicking ''run''
it doesn't work now.
can u do a auto skull discord script ?
Its not working anymore😢
why my bot is not onlinee
Plzzz new méthode he does't work in 2024
it didnt work help
it closed
Make another tutorial please, and no replit. My script will be skidded. Python too ❤🎉
for bash?
What modules are supported in python, can i use aiogram? On Replit.
You can use it, you Can use it even with selenium
@@GuntherSuper Cool, selenium it's supported as well! It's 3.0 aiogram supported or just 2.0?
Nice
Do it show telegram on online
Not working now
I cant copy this.
can't g
et it to work
Well I have a C# project :)
still work?
yup
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'
Same problem bro
"Pip install flask" in the shell
write pip install flask in shell 💀
Python please?
Did this for a discord nitro sniper and got 3 months nitro once in a year
how
What about typescript
js and py
@@nguyenhuyhoangnguyen5871 what?
dont i have to put my token somewhere?
Yes but its not safe to put it on a Public replit
@@susguy446I put in Secrets
@@susguy446secret
You need to paste in a token 😂
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.
And it would be public in the video
00:00
bro wtf is this video, it's so confusing
00:01
Oh god, not replit again. Replit is BAD platform
Its free and allows you to run anything you want
@@itsyaboivoid vsc free?
@@Mamamo-lb5po yes
@@itsyaboivoid do you have a tutorial video how to create ai in messenger for free and active 24/7 sir
@@itsyaboivoid dude, in what way are you supose to use visual studio code with a 24/7 hosting server, wtf
I wouldn’t do this - very unreliable and there’s high chance your script could be exposed to others (bye bye discord token)
There is something called making a secret key 😐
@@heyimzoid what?
@@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
Hi
0:20
0:01
HOW THE FUCK DO YOU GET WEBVIEW?!!!?!
bro create a keep alive fine then copy past the codes there
Mine stops after like 1 hour, any fixes?
UptimeRobot stopped to support Replit since April 2022... That's why
@@MiirFy mine stops from replit now from UptimeRobot
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
the file name
does this still work? @GuntherSuper
thanks