From 510c2b5ab7ad8cdd5b197c8b96091cab15d4e0d5 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Mon, 18 Sep 2017 22:23:09 +0200 Subject: Remove commented out code in handle_rtmstart No point in keeping commented out code, especially since this code has never been active. --- wee_slack.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/wee_slack.py b/wee_slack.py index c53b4f5..9d54480 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2045,7 +2045,6 @@ def handle_rtmstart(login_data, eventrouter): users = {} for item in login_data["users"]: users[item["id"]] = SlackUser(**item) - # users.append(SlackUser(**item)) bots = {} for item in login_data["bots"]: @@ -2084,18 +2083,6 @@ def handle_rtmstart(login_data, eventrouter): t.set_reconnect_url(login_data['url']) t.connect() - # web_socket_url = login_data['url'] - # try: - # ws = create_connection(web_socket_url, sslopt=sslopt_ca_certs) - # w.hook_fd(ws.sock._sock.fileno(), 1, 0, 0, "receive_ws_callback", t.get_team_hash()) - # #ws_hook = w.hook_fd(ws.sock._sock.fileno(), 1, 0, 0, "receive_ws_callback", pickle.dumps(t)) - # ws.sock.setblocking(0) - # t.attach_websocket(ws) - # t.set_connected() - # except Exception as e: - # dbg("websocket connection error: {}".format(e)) - # return False - t.buffer_prnt('Connected to Slack') t.buffer_prnt('{:<20} {}'.format("Websocket URL", login_data["url"])) t.buffer_prnt('{:<20} {}'.format("User name", login_data["self"]["name"])) @@ -2106,8 +2093,6 @@ def handle_rtmstart(login_data, eventrouter): dbg("connected to {}".format(t.domain)) - # self.identifier = self.domain - def handle_channelsinfo(channel_json, eventrouter, **kwargs): request_metadata = pickle.loads(channel_json["wee_slack_request_metadata"]) team = eventrouter.teams[request_metadata.team_hash] -- cgit