From 14e44c173491cb037193a84fcf077c300e4d1425 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 16 Jun 2015 11:22:41 -0400 Subject: [PATCH] Post to thread object, not channel object. Signed-off-by: Anna Schumaker --- slackpost.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slackpost.py b/slackpost.py index ef7c637..f887e4e 100755 --- a/slackpost.py +++ b/slackpost.py @@ -61,7 +61,7 @@ print(text) thread = slack.find_thread(thread_id) if thread == None: - print("No such thread!") + print("No such thread: %s!" % thread_id) sys.exit(1) -channel.post(text) +thread.post(text)