24/7
StrawBester (1)

I need help to making it 24/7, i want a discord bot to be on 24/7.

You are viewing a single comment. View All
minx28 (160)

@Patu

from flask import Flask
from threading import Thread

app=Flask("")

@app.route("/")
def index():
    return "<h1>Bot is running</h1>"

Thread(target=app.run,args=("0.0.0.0",8080)).start()