Created
May 13, 2015 11:13
-
-
Save coela/2bb76a0127733c5b90db to your computer and use it in GitHub Desktop.
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
#!/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