File size: 281 Bytes
8d7b8d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()