Initial commit.

This commit is contained in:
Alex 2019-05-29 17:45:08 -05:00
commit 2bf613146a
2 changed files with 16 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
**/.pyenv/**
**/*.pyc
**/__pycache__/**
**/.vscode/**
.api_token

11
slack-bot-testing.py Normal file
View file

@ -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!'