From e3c0b42889fabc53d30e9f5ba1b7bbae635d43b8 Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Mon, 6 Feb 2017 19:32:56 -0800 Subject: channel renames --- wee_slack.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 52ff1ee..4b83afb 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2003,6 +2003,11 @@ def process_channel_created(message_json, eventrouter, **kwargs): #print eventrouter.teams['d80c2b6c3127dbb1991917394ed219e8212a2606'].channels['C3ZM2GMGU'].team.domain #raise +def process_channel_rename(message_json, eventrouter, **kwargs): + item = message_json["channel"] + channel = kwargs['team'].channels[item["id"]] + channel.slack_name = message_json['channel']['name'] + def process_im_open(message_json, eventrouter, **kwargs): channel = kwargs['channel'] item = message_json -- cgit