Open fernvenue opened 1 year ago
create host.py
from flask import Flask
from threading import Thread
app = Flask('')
app.route('/')
def main():
return "Bot is online."
def run():
app.run(host = "0.0.0.0", port = 8000)
def keep_alive():
server = Thread(target = run)
server.start()
This is what the keep_alive file contains, and name it like host.py or something. If you are naming it host.py then in your main.py you should add this too.
from host import keep_alive
keep_alive() #added at the bottom after all commands and line 70 edit
Hi, I'm trying to use this bot but I got this error when I run:
I do installed
keep_alive
, and even if I tried to reinstall over and over again, still like that :(