Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions examples/google_cloud_run/flask-gunicorn/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

from slack_bolt import App

# Initialize the Slack app with the bot token from an environment variable
app = App(token=os.environ.get('SLACK_BOT_TOKEN'))

logging.basicConfig(level=logging.DEBUG)
app = App()


@app.command("/hey-google")
Expand All @@ -27,4 +29,4 @@ def slack_events():

# Only for local debug
if __name__ == "__main__":
flask_app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 3000)))
flask_app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 3000)))