Post to thread object, not channel object.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-06-16 11:22:41 -04:00
parent c5e15161bd
commit 14e44c1734
1 changed files with 2 additions and 2 deletions

View File

@ -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)