Make Your Discord Bot Run 24/7 (Very Important Line of Code in the Video!!)

  Рет қаралды 6,396

Neel Banga

Neel Banga

Күн бұрын

Пікірлер: 59
@neelbanga
@neelbanga 3 жыл бұрын
KEEP_ALIVE WEBSITE CODE: from flask import Flask from threading import Thread app = Flask('') @app.route('/') def home(): return "Hello. I am alive!" def run(): app.run(host='0.0.0.0',port=8080) def keep_alive(): t = Thread(target=run) t.start()
@mons7rata
@mons7rata 3 жыл бұрын
It works :) subbed to your channel. Thanks
@neelbanga
@neelbanga 3 жыл бұрын
Tysm!! Glad to help!
@flow5326
@flow5326 3 жыл бұрын
deserves more subs tbh
@neelbanga
@neelbanga 3 жыл бұрын
Thank you :) let’s hope that happens!
@trioret8304
@trioret8304 2 жыл бұрын
thank you so much kid . I will share vid
@neelbanga
@neelbanga 2 жыл бұрын
No problem. Thank you!
@loleroneo2496
@loleroneo2496 2 жыл бұрын
for a small youtuber, this was very surprising
@neelbanga
@neelbanga 2 жыл бұрын
Thanks! I’ve moved on from discord.py tutorials and am now going to be making more devlog/entertainment tech videos so if you’d like to subscribe to see what’s next, that would be great
@loleroneo2496
@loleroneo2496 2 жыл бұрын
@@neelbanga good luck with that! Hope it goes well
@neelbanga
@neelbanga 3 жыл бұрын
Important note, if you want your token to be private (which you should), at 2:22, delete your bot.run() line and replace it with, bot.run(token)
@jjhoffy
@jjhoffy Жыл бұрын
It worked really well until apparently I got this massive red text error, nothing was wrong with the code but I searched it up and apparently it was sending too many requests to discord so it got rate limited and stopped running, I can re-run it from repl but I have to wait a couple of hours, is there any way around this? I can't think of what could be causing it, I have a sleep function for auto messages so I am pretty sure its not that, what do you think?
@treborthefox9064
@treborthefox9064 Жыл бұрын
it worked ty so much
@neelbanga
@neelbanga Жыл бұрын
No problem, it would mean a lot if you could check out the newer shorts
@LalluAnimation
@LalluAnimation 3 жыл бұрын
Great tutorial, mate 😀 Keep up the hardwork
@neelbanga
@neelbanga 3 жыл бұрын
Thank you so much!
@thebutter5524
@thebutter5524 3 жыл бұрын
Hey!!!! Its me, The Butter again! I'm back at your channel to check on your progress as a content creator. You seem to be doing great!! 123 subscribers already! Here's my challenge - from one stick of butter to a genius. 1,000 subscribers by the end of the year. Ill be back in another month to say hi! Stay safe, and keep up the hard work The Butter.
@neelbanga
@neelbanga 3 жыл бұрын
Thank you for the kind words! Let's try and get to 1,000 by the end of the year!!
@vmc10
@vmc10 3 жыл бұрын
Bro, thank you so much!!!!!!!!!!!! Keep it up!!!
@neelbanga
@neelbanga 3 жыл бұрын
I’m really glad you enjoyed it, thank you for watching!!
@dp3587
@dp3587 3 жыл бұрын
Really good tutorial! Keep it up, man
@neelbanga
@neelbanga 3 жыл бұрын
Thanks!!
@lordprinter8586
@lordprinter8586 3 жыл бұрын
It's work and it's very cool
@neelbanga
@neelbanga 3 жыл бұрын
Tysm! Like if you liked!
@dmitryg9613
@dmitryg9613 3 жыл бұрын
Very talented guy🥇
@neelbanga
@neelbanga 3 жыл бұрын
Thank you so much!!! That means a lot!
@3w4n86
@3w4n86 2 жыл бұрын
Very helpful 👍
@neelbanga
@neelbanga 2 жыл бұрын
Thanks, be sure to check out some newer content
@DanFMN
@DanFMN 3 жыл бұрын
Keep up the good work!
@neelbanga
@neelbanga 3 жыл бұрын
Thank you so much!!! That means a lot from a big KZbinr like you!!
@user-xf7mu7ub9d
@user-xf7mu7ub9d Жыл бұрын
You should upload more frequently
@neelbanga
@neelbanga Жыл бұрын
I’m posting two long form videos soon.
@liljaso
@liljaso 3 жыл бұрын
Great Video. i just had one question.. in the start u copied the code from i assume a downloaded IDE application and then went to repl.it to keep it online 24/7. So, my question is, if i want to add more code to my bot, will i have to code it in repl.it or my downloaded IDE app now? cuz i prefer my downloaded one, i dont rly want to use repl.it, all i wanted was to keep my bot on 24/7. thnx :)
@liljaso
@liljaso 3 жыл бұрын
yea i just tested this, i added a command in my downloaded IDE and then closed it then i went to discord and the command didnt work... this means ill have to code using repl.it now, which i dont want to do. if i wanted to code using repl.it i wouldnt need this video cuz i already know a very similar way of keeping the bot on 24/7. If you know a way to keep bot online 24/7 using your downloaded IDE then lmk, i aint using repl.it ty to anyone reading this rn. Good Day
@neelbanga
@neelbanga 3 жыл бұрын
I’d recommend using ur downloaded IDE then just pasting the code to replit
@liljaso
@liljaso 3 жыл бұрын
That doesnt make sense at all. why would i code on my downloaded IDE and paste it on repl.it. might as well do it on repl.it only.. whats the use of the downloaded IDE in that case, if repl.it is actually being used? the downloaded IDE is pretty much useless.
@neelbanga
@neelbanga 3 жыл бұрын
Well then just code on replit, I don’t really like doing that so I copy/paste
@JcHammez
@JcHammez 2 жыл бұрын
I am confused as to why you didn't replace the actual argument of bot.run with the variable token?
@neelbanga
@neelbanga 2 жыл бұрын
Yes…that was a mistake. I made this a while back.
@aymancassim8944
@aymancassim8944 3 жыл бұрын
Heyy bro really nice channel Im glad I came across
@neelbanga
@neelbanga 3 жыл бұрын
Thanks!! That means a lot, I work really hard on these videos and the fact that you went out of your way to say something nice really means a lot. Thank you!
@TheXBro
@TheXBro 2 жыл бұрын
IS there a way to keep code GO online 24/7?
@neelbanga
@neelbanga 2 жыл бұрын
Yeah the same method should work. You just need to create a GO website
@TheXBro
@TheXBro 2 жыл бұрын
@@neelbanga Hey can you help me. I made the web server but i don't know how to import it into main, so it runs both on one command
@neelbanga
@neelbanga 2 жыл бұрын
@@TheXBro I’m not too familiar with go. Why don’t you join our discord server where we can help you better
@notfileexplorer
@notfileexplorer Жыл бұрын
Why does my code not work
@real_yoplayer1
@real_yoplayer1 3 жыл бұрын
I thought you will use replit .
@neelbanga
@neelbanga 3 жыл бұрын
I did....
@real_yoplayer1
@real_yoplayer1 3 жыл бұрын
@@neelbanga Ya I was saying that I thought you will use replit and you did.
@neelbanga
@neelbanga 3 жыл бұрын
Ohh okay…congratulations then lol
@real_yoplayer1
@real_yoplayer1 3 жыл бұрын
@@neelbanga lol remember me I'm the guy frm discord and replit.
@neelbanga
@neelbanga 3 жыл бұрын
Okay lol
What to Upgrade First at TH14 including Lab Guide! - Clash of Clans
14:16
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 80 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 36 МЛН
Wham! - Last Christmas (Official Video)
4:39
WHAM!
Рет қаралды 914 МЛН
How Hollywood Shot Actors with Arrows before CGI
15:12
Tyler Bell
Рет қаралды 3,9 МЛН
عبود احبك ولاسمع فيك ☹️♥️
3:58
عبوددد☹️
Рет қаралды 45 М.
Ages 1 - 100 Decide Who Wins $250,000
40:02
MrBeast
Рет қаралды 234 МЛН
6 Kids Vs 2 Secret Adults
41:14
NDL
Рет қаралды 5 МЛН
Break This Ball in 1 Minute, Win $1,000!
32:56
Stay Wild
Рет қаралды 26 МЛН
[2023] - How to host your Discord Bot 24/7 for FREE (Discloud)!
8:01
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 80 МЛН