bena.c.b / server.py
alptangall's picture
Update server.py
8d7b8d6 verified
raw
history blame
281 Bytes
from flask import Flask
from threading import Thread
import sys
app = Flask('')
@app.route('/')
def main():
return 'Bot ready!'
sys.exit("Error message")
def run():
app.run(host='0.0.0.0', port=8888)
def b():
server = Thread(target=run)
server.start()