

def _rtm_connect(self):
    r = self.slacker.rtm.start().body
    self.driver_username = r['self']['name']
    self.driver_userid = r['self']['id']
    self.users = {u['name']: u['id'] for u in r['users']}
    self.testbot_userid = self.users[self.testbot_username]
    self._websocket = websocket.create_connection(r['url'])
    self._websocket.sock.setblocking(0)
    _thread.start_new_thread(r._rtm_read_forever, tuple())

dataset/ETHPy150Open lins05/slackbot/tests/functional/driver.py Driver._rtm_connect/VarMisuse@113/152 `self`->`r`