This commit is contained in:
2021-11-20 17:30:32 +01:00
commit 9c902769f6
6 changed files with 76 additions and 0 deletions

0
lib/__init__.py Normal file
View File

7
lib/help.py Normal file
View File

@@ -0,0 +1,7 @@
def get_help():
help = """
__**Help**__ \n
Prefix: $
hello: get a hello back
"""
return(help)

15
lib/keep_alive.py Normal file
View File

@@ -0,0 +1,15 @@
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()