Skip to content

Instantly share code, notes, and snippets.

@marufeuille
Created September 15, 2017 18:04
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 marufeuille/40d147b8d2f2d6ac9e567458d6cf977b to your computer and use it in GitHub Desktop.
Save marufeuille/40d147b8d2f2d6ac9e567458d6cf977b to your computer and use it in GitHub Desktop.
import slackweb
def lambda_handler(event, context):
slack = slackweb.Slack(url="YOUR WEBHOOK URL PUTS HERE")
slack.notify(text="Hello, World!!", channel="#YOUR CHANNEL HERE", username="USERNAME HERE", icon_emoji=":smiling_imp:")
return "succeeded"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment