Skip to content
Merged
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 @@ -128,7 +128,7 @@ variable values and then instantiate the Slack client.
# constants
RTM_READ_DELAY = 1 # 1 second delay between reading from RTM
EXAMPLE_COMMAND = "do"
MENTION_REGEX = "^<@(|[WU].+)>(.*)"
MENTION_REGEX = "^<@(|[WU].+?)>(.*)"


The code instantiates the `SlackClient` client with our `SLACK_BOT_TOKEN`
Expand Down Expand Up @@ -263,7 +263,7 @@ starterbot_id = None
# constants
RTM_READ_DELAY = 1 # 1 second delay between reading from RTM
EXAMPLE_COMMAND = "do"
MENTION_REGEX = "^<@(|[WU].+)>(.*)"
MENTION_REGEX = "^<@(|[WU].+?)>(.*)"

def parse_bot_commands(slack_events):
"""
Expand Down