init
This commit is contained in:
0
lib/__init__.py
Normal file
0
lib/__init__.py
Normal file
7
lib/help.py
Normal file
7
lib/help.py
Normal 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
15
lib/keep_alive.py
Normal 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()
|
||||
Reference in New Issue
Block a user