aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-06 19:32:56 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-06 19:32:56 -0800
commite3c0b42889fabc53d30e9f5ba1b7bbae635d43b8 (patch)
treea43e33b542ef57d807ed1bf0dfe38a5378738c4f /wee_slack.py
parente924b06077f7e3532664aa7edc3b95a406f87cea (diff)
downloadwee-slack-e3c0b42889fabc53d30e9f5ba1b7bbae635d43b8.tar.gz
channel renames
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 5 insertions, 0 deletions
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