aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2017-09-18 22:23:09 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2017-09-18 22:23:09 +0200
commit510c2b5ab7ad8cdd5b197c8b96091cab15d4e0d5 (patch)
tree8f25165f0d548bcfe221f4c5e56f95cf99243952 /wee_slack.py
parentec838dbc03613554cdf27476cab18fd7d68344aa (diff)
downloadwee-slack-510c2b5ab7ad8cdd5b197c8b96091cab15d4e0d5.tar.gz
Remove commented out code in handle_rtmstart
No point in keeping commented out code, especially since this code has never been active.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py15
1 files changed, 0 insertions, 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]