diff --git a/examples/google_cloud_run/flask-gunicorn/main.py b/examples/google_cloud_run/flask-gunicorn/main.py index 70bf437cb..6b4320d5a 100644 --- a/examples/google_cloud_run/flask-gunicorn/main.py +++ b/examples/google_cloud_run/flask-gunicorn/main.py @@ -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") @@ -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))) \ No newline at end of file