Created
July 10, 2018 17:36
-
-
Save jattoabdul/9b3dcb50f3e033363094a4267450be00 to your computer and use it in GitHub Desktop.
Code Snippets for Part one of my article on "How to Build A Task Notification Bot for Slack with Python"
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 os | |
from flask import Flask, request, make_response, render_template | |
app = Flask(__name__) | |
@app.route("/", methods=["GET"]) | |
def home(): | |
"""This route renders a hello world text.""" | |
#rendering text | |
return 'Hello World' | |
if __name__ == '__main__': | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment