Skip to content

Instantly share code, notes, and snippets.

@coela
Created May 13, 2015 11:13
Show Gist options
  • Save coela/2bb76a0127733c5b90db to your computer and use it in GitHub Desktop.
Save coela/2bb76a0127733c5b90db to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import re
import sys
argvs = sys.argv
if len(argvs) == 1:
argvs.append("")
os.system('curl -k -X POST --data-urlencode \'payload={"channel": "#job", "username": "webhookbot", "text": "Your job is done: %s ", "icon_emoji": ":ghost:"}\' https://hooks.slack.com/services/hoge/hogehoge'%argvs[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment