diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 5 |
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 |