def __init__(self, token, connect=True): self.token = token self.username = None self.domain = None self.login_data = None self.websocket = None self.users = SearchList() self.channels = SearchList() self.connected = False self.pingcounter = 0 self.api_requester = SlackRequest() if connect: self.rtm_connect()
def __init__(self, token, connect=True, proxies=None): self.token = token self.username = None self.domain = None self.login_data = None self.websocket = None self.users = SearchDict() self.channels = SearchList() self.connected = False self.ws_url = None self.proxies = proxies self.api_requester = SlackRequest(proxies=proxies) if connect: self.rtm_connect()