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

Опубликовано: 23 Апрель 2021
на канале: Neel Banga
6,367
148

Leave any questions in the comments!

We will be making our bot run 24/7 in this video, we also have to write one line of code to make discord commands to work!

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()


CONTACT ME:
Discord:   / discord  

Contact: [email protected]


OTHER VIDEOS:

Discord Bot Video:    • Create Your Discord Bot With Python I...  

Install Python:    • How to install python in six minutes!  ​
Other Programming Tutorials:    • Make A Choose Your Own Adventure Game...  

TIMESTAMPS:

0:00 - Intro
0:19 - Important Line of Code
0:52 - Get Your Bot To Run 24/7
6:34 - Testing (Spoiler Alert: It Works!!)

Best,
Programming Done Right


Смотрите видео Make Your Discord Bot Run 24/7 (Very Important Line of Code in the Video!!) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Neel Banga 23 Апрель 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,367 раз и оно понравилось 148 людям.