Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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': []
}
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