forked from Saurav-Shrivastav/Slackbot-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
27 lines (25 loc) · 704 Bytes
/
app.py
File metadata and controls
27 lines (25 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from sources.TechTeamBot import TechTeamBot
from flask import Flask
from logging.config import dictConfig
dictConfig({
'version': 1,
'formatters': {'default': {
'format': '[%(asctime)s] %(levelname)s in %(module)s: %(message)s',
}},
'handlers': {'wsgi': {
'class': 'logging.StreamHandler',
'stream': 'ext://flask.logging.wsgi_errors_stream',
'formatter': 'default'
}},
'root': {
'level': 'INFO',
'handlers': ['wsgi']
}
})
# This `app` represents your existing Flask app
flask_app = Flask(__name__)
app = TechTeamBot(flask_app)
app.setup()
# Start the server on port 3000
if __name__ == "__main__":
app.run(host='0.0.0.0')