    def connect(self):
        # type: () -> None
        '''Connects to the chat system.'''
        logging.info('Attempting to start Slack RTM session.')
        if self._slack.rtm_connect():
            logging.info('Slack RTM connection successful.')
        else:
            raise ChatException('Unable to start Slack RTM session')
Connects to the chat system.
securitybot/chat/slack.py