Last active
October 18, 2017 10:40
-
-
Save ulope/1d2840e91711105aaa7645206e360d0a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def notify_rc(title, message, color='#c0c0c0'): | |
requests.post( | |
RC_WEBHOOK_URL, | |
json={ | |
"attachments": [ | |
{ | |
"title": title, | |
"text": message, | |
"color": color | |
} | |
] | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment