Created
April 29, 2021 21:55
-
-
Save gabicavalcante/ff6b3d90a0ccfaf2e9aa119fd9e57375 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
from slack_bolt import App | |
from slack_bolt.adapter.flask import SlackRequestHandler | |
app = App() | |
@app.event(regex...) | |
def handle_message(): | |
pass | |
from flask import Flask, request | |
flask_app = Flask(__name__) | |
handler = SlackRequestHandler(app) | |
@flask_app.route("/slack/events", methods=["POST"]) | |
def slack_events(): | |
return handler.handle(request) | |
@flask_app.route("/audit", methods=["POST"]) | |
def slack_events(): | |
deployment_data = request.json() | |
... | |
return {"status": True} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment