How to make a round-the-clock hosting bot on pycord that works even when the computer is turned off

I tried this code, but it doesn’t work when the computer is turned off:

from flask import Flask
from threading import Thread
app = Flask('')
def home():
  return "Active."
def run():'',port=8080)
def keep_alive():
  t = Thread(target=run)

make sure you have added your repl’s webview URL to a pinger, e.g. Freshping. Note that this will stop working when repls become cover page-only and goes.