def create(id, token)
      fail SlackBotManager::TokenAlreadyConnected if find_connection(id)

      # Create connection
      conn = SlackBotManager::Client.new(token)
      conn.connect

      # Add to connections using a uniq token
      if conn
        cid = [id, Time.now.to_i].join(':')
        connections[cid] = conn
        info("Connected: #{id} (Connection: #{cid})")
        storage.set(teams_key, id, 'active')
      end
    rescue => err
      on_error(err)
    end
def create(id, token)
      fail SlackBotManager::TokenAlreadyConnected if find_connection(id)

      # Create connection
      conn = SlackBotManager::Client.new(token)
      conn.connect

      # Add to connections using a uniq token
      if conn
        cid = [id, Time.now.to_i].join(':')
        connections[cid] = conn
        info("Connected: #{id} (Connection: #{cid})")
        storage.set(teams_key, id, 'active')
      end
    rescue => err
      on_error(err)
    end
Create new connection if not exist