aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-21 16:28:31 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-21 16:28:31 -0800
commit3b22dd58211294833dd6e0ca6ae770cfccf5c62e (patch)
treeec5df474133eed67013e561ba6a772fcf09ca65e
parentc3078c51e618956240f0dc9a6472b3a022c7550d (diff)
downloadwee-slack-3b22dd58211294833dd6e0ca6ae770cfccf5c62e.tar.gz
print notification of new channels in server buffer
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8a4917d..96b974b 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2081,8 +2081,7 @@ def process_channel_created(message_json, eventrouter, **kwargs):
item = message_json["channel"]
c = SlackChannel(eventrouter, team=kwargs["team"], **item)
kwargs['team'].channels[item["id"]] = c
- #print eventrouter.teams['d80c2b6c3127dbb1991917394ed219e8212a2606'].channels['C3ZM2GMGU'].team.domain
- #raise
+ kwargs['team'].buffer_prnt('Channel created: {}'.format(c.slack_name))
def process_channel_rename(message_json, eventrouter, **kwargs):
item = message_json["channel"]
@@ -2094,6 +2093,7 @@ def process_im_created(message_json, eventrouter, **kwargs):
item = message_json["channel"]
c = SlackDMChannel(eventrouter, team=team, users=team.users, **item)
team.channels[item["id"]] = c
+ kwargs['team'].buffer_prnt('IM channel created: {}'.format(c.name))
def process_im_open(message_json, eventrouter, **kwargs):
channel = kwargs['channel']