djangobot/client.py
def run(self):
        """
        Main interface. Instantiate the SlackAPI, connect to RTM
        and start the client.
        """
        slack = SlackAPI(token=self.token)
        rtm = slack.rtm_start()

        factory = SlackClientFactory(rtm['url'])
        # Attach attributes
        factory.protocol = SlackClientProtocol
        factory.protocol.slack = slack
        factory.protocol.channel_layer = self.channel_layer
        factory.channel_name = self.channel_name

        # Here we go
        factory.run()
def run(self):
        slack = SlackAPI(token=self.token)
        rtm = slack.rtm_start()

        factory = SlackClientFactory(rtm['url'])
        # Attach attributes
        factory.protocol = SlackClientProtocol
        factory.protocol.slack = slack
        factory.protocol.channel_layer = self.channel_layer
        factory.channel_name = self.channel_name

        # Here we go
        factory.run()
def run ( self ) : slack = SlackAPI ( token = self . token ) rtm = slack . rtm_start ( ) factory = SlackClientFactory ( rtm [ 'url' ] ) # Attach attributes factory . protocol = SlackClientProtocol factory . protocol . slack = slack factory . protocol . channel_layer = self . channel_layer factory . channel_name = self . channel_name # Here we go factory . run ( )
Main interface. Instantiate the SlackAPI, connect to RTM
        and start the client.
Main interface . Instantiate the SlackAPI connect to RTM and start the client .