Make Your Discord Bot Run 24/7 (Very Important Line of Code in the Video!!)
Neel's Tech Show
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: https://discord.gg/UbWFK4je7B
Contact: programmingdoneright@gmail.com
OTHER VIDEOS:
Discord Bot Video: https://www.youtube.com/watch?v=B8eSsBxjPDE
Install Python: https://youtu.be/oeAEXn731Fg Other Programming Tutorials: https://www.youtube.com/watch?v=nZzCxFFEufY&list=PL1U-imfSFzUQlhpNiYUSAC5nSHT1O5Gfh
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 ... https://www.youtube.com/watch?v=L029p9HnkJY
33691687 Bytes