From 3bab35891014695958914746af75d10cea4e355b Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Sat, 4 Feb 2017 19:45:24 -0800 Subject: remove debug messages and add tiny doc --- README.md | 8 ++++++++ wee_slack.py | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 347e7f7..87447f7 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ [![Build Status](https://travis-ci.org/wee-slack/wee-ng.svg?branch=master)](https://travis-ci.org/wee-slack/wee-ng) + + +### Using threads in wee-ng beta (note: you can't start threads yet, but you can participate in existing ones): + +1) look for [Threaded: 12345677.0000] at the end of a message. this means it has threads. +2) in the buffer with the threaded message type `/thread 12345677.0000` +3) a new buffer will open named ` +12345677.0000`, which is the thread buffer +4) if you'd like to give thread buffers a friendly name, switch to them and type `/label [newname]` diff --git a/wee_slack.py b/wee_slack.py index 5c63891..c30be56 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1562,7 +1562,7 @@ def process_message(message_json, eventrouter, store=True, **kwargs): traceback.print_exc() def subprocess_thread_message(message_json, eventrouter, channel, team): - print ("THREADED: " + str(message_json)) + #print ("THREADED: " + str(message_json)) parent_ts = message_json.get('thread_ts', None) if parent_ts: #parent_ts = SlackTS(parent_ts) @@ -1598,7 +1598,8 @@ def subprocess_thread_message(message_json, eventrouter, channel, team): #channel.become_thread(message_json["item"]["ts"], message_json) def subprocess_message_replied(message_json, eventrouter, channel, team): - print ("REPLIED: " + str(message_json)) + pass + #print ("REPLIED: " + str(message_json)) def subprocess_message_changed(message_json, eventrouter, channel, team): print "CHANGED!!" -- cgit