How to use the slackclient.SlackClient.__init__ function in slackclient

To help you get started, we’ve selected a few slackclient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jperezlatimes / tyranobot / tyranobot / tyranobot.py View on Github external
def __init__(self, bot_data, *args, **kwargs):
        # Call SlackClient's initialization function
        SlackClient.__init__(self, bot_data['bot_token'], *args, **kwargs)

        # Store the token and id then set the socket delay
        self.token = bot_data['bot_token']
        self.bot_id = bot_data['bot_id']
        self.web_socket_delay = 1

        # Our dictionaries of replies
        self.replies = {
            'passive': [],
            'active': []
        }
github eeue56 / slack-today-i-did / slack_today_i_did / better_slack.py View on Github external
def __init__(self, *args, **kwargs):
        SlackClient.__init__(self, *args, **kwargs)
        self.known_users = {}
        self._conn = None
        self.message_queue = []
        self._should_reconnect = False
        self._in_count = 0