Skip to content

Instantly share code, notes, and snippets.

@freemanjackal
Created October 1, 2020 17:44
Show Gist options
  • Save freemanjackal/873ce5e5c241cd060f887f8db322f670 to your computer and use it in GitHub Desktop.
Save freemanjackal/873ce5e5c241cd060f887f8db322f670 to your computer and use it in GitHub Desktop.
@app.route("/slash_commands", methods=["GET", "POST"])
def slash_commands():
"""
some code before
"""
if command == "/crypto_prices":
data = get_latest_prices()
text = convertPrices2Msgs(data)
return {'blocks': text}
"""
more code after
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment