commit 2bf613146a7cd7919db207bc279919a315dbbf3d Author: Alex Date: Wed May 29 17:45:08 2019 -0500 Initial commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef5c63d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +**/.pyenv/** +**/*.pyc +**/__pycache__/** +**/.vscode/** +.api_token diff --git a/slack-bot-testing.py b/slack-bot-testing.py new file mode 100644 index 0000000..1510978 --- /dev/null +++ b/slack-bot-testing.py @@ -0,0 +1,11 @@ +import os +import slack + +client = slack.WebClient(token=os.environ['SLACK_API_TOKEN']) + +response = client.chat_postMessage( + channel='#general', + text='Hello, world!' +) +assert response['ok'] +assert response['message']['text'] == 'Hello, world!' \ No newline at end of file