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
Watch video Make Your Discord Bot Run 24/7 (Very Important Line of Code in the Video!!) online without registration, duration hours minute second in high quality. This video was added by user Neel Banga 23 April 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,367 once and liked it 148 people.