Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Post slack messages as user
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhe committed Jul 21, 2016
1 parent ba2a380 commit ec9f80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def pokemon_found(pokemon):

# Post to Slack
post_url = "https://slack.com/api/chat.postMessage"
post_params = { "token": slack_key, "channel": slack_channel, "text": notification_text }
post_params = { "token": slack_key, "as_user": "true", "channel": slack_channel, "text": notification_text }
response = requests.post(post_url, data=post_params)

init()

0 comments on commit ec9f80e

Please sign in to comment.