Hi, thank you very much for your response. I am firstly initialising an app (called "app") from the slack_bolt module and writing some test functionality for it. I then initialize a flask app and register routes to the Flask app:
# Initialize Flask app
from flask import Flask, request
flask_app = Flask(__name__)
flask_app.config["DEBUG"] = True
# SlackRequestHandler translates WSGI requests to Bolt's interface
# and builds WSGI response from Bolt's response.
from slack_bolt.adapter.flask import SlackRequestHandler
handler = SlackRequestHandler(app)
# Register routes to Flask app
@flask_app.route("/slack/events", methods=["POST"])
def slack_events():
# handler runs App's dispatch method
return handler.handle(request)
flask_app is then imported into my wsgi configuration file as "application". Using my own pc, I require the line flask_app.run(debug=True) in my flask_app script to continuously run my app. Just wondering if this command can be implemented somewhere on my pythonanywhere web app, or if another solution may work?
Many thanks.