   s3_region = process.env.HUBOT_GRAFANA_S3_REGION or 'us-standard'
   s3_port = process.env.HUBOT_GRAFANA_S3_PORT if process.env.HUBOT_GRAFANA_S3_PORT
   slack_token = process.env.HUBOT_SLACK_TOKEN
+  rocketchat_url = process.env.ROCKETCHAT_URL
+  rocketchat_user = process.env.ROCKETCHAT_USER
+  rocketchat_password = process.env.ROCKETCHAT_PASSWORD
+
+  if rocketchat_url && ! rocketchat_url.startsWith 'http'
+    rocketchat_url = 'http://' + rocketchat_url
 
   site = () ->
-    # prioritize S3 no matter if adpater is slack
+    # prioritize S3 no matter if adpater is slack or rocketchat
     if (s3_bucket && s3_access_key && s3_secret_key)
       's3'
     else if (robot.adapterName == 'slack')
       'slack'
+    else if (robot.adapterName == 'rocketchat')
+      'rocketchat'
     else
       ''
   isUploadSupported = site() != ''

          callback(err, res, body)

    uploadTo[site()](msg, title, grafanaDashboardRequest, link)

          robot.logger.debug panel

          panelNumber += 1
          # Skip if visual panel ID was specified and didn't match
          if visualPanelId && visualPanelId != panelNumber
            continue
