From ec9f80e78c0d42d97f476803dc608f95c85277d2 Mon Sep 17 00:00:00 2001 From: Karl He Date: Wed, 20 Jul 2016 23:04:08 -0700 Subject: [PATCH] Post slack messages as user --- notifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifier.py b/notifier.py index 57cb8ba1f3..fa014bf9f0 100644 --- a/notifier.py +++ b/notifier.py @@ -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()