Skip to content

Instantly share code, notes, and snippets.

@jattoabdul
Created July 10, 2018 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jattoabdul/9b3dcb50f3e033363094a4267450be00 to your computer and use it in GitHub Desktop.
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"
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