Initial commit.
This commit is contained in:
commit
2bf613146a
2 changed files with 16 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
**/.pyenv/**
|
||||
**/*.pyc
|
||||
**/__pycache__/**
|
||||
**/.vscode/**
|
||||
.api_token
|
11
slack-bot-testing.py
Normal file
11
slack-bot-testing.py
Normal 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!'
|
Reference in a new issue