Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 160604-build-first-slack-bot-python.markdown #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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