Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/posts/160604-build-first-slack-bot-python.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ named `starterbot.py` and include the following code in it.
import os
import time
import re
from slackclient import SlackClient
from slack import WebClient


With our dependencies imported we can use them to obtain the environment
variable values and then instantiate the Slack client.


# instantiate Slack client
slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN'))
slack_client = WebClient(os.environ.get('SLACK_BOT_TOKEN'))
# starterbot's user ID in Slack: value is assigned after the bot starts up
starterbot_id = None

Expand Down