Created
July 11, 2017 22:04
-
-
Save ricklentz/772d31131c1901d8268caa5e6d071cf3 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
| import os | |
| import sys | |
| from slackclient import SlackClient | |
| def send_message_to_channel(message='hello, I did not override the message',channel='#systems'): | |
| slack_token = "xoxp-12345" | |
| sc = SlackClient(slack_token) | |
| sc.api_call( | |
| "chat.postMessage", | |
| username='AI Bot', | |
| channel=channel, | |
| text=message | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment