Last active
December 15, 2015 01:49
-
-
Save pmbaumgartner/330d6c48dbdd78315702 to your computer and use it in GitHub Desktop.
creating a simple hello world app for a Slack slash command.
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
from flask import Flask | |
import os | |
app = Flask(__name__) | |
@app.route("/hello", methods=['POST']) | |
def hello(): | |
return "Hello World!" | |
if __name__ == '__main__': | |
port = int(os.environ.get('PORT', 5000)) | |
app.run(host='0.0.0.0', port=port, debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment