           return
         results = JSON.parse(body)
         output = []
-        for result,value of results
+        for value in results
           output.push value['name'] + ' (' + value['address'] + ') subscriptions: ' + value['subscriptions'].sort().join(', ')
 
         if output.length is 0

          return
        results = JSON.parse(body)
        output = []
        for result,value of results
          if value['flapping']
            flapping = ', flapping'
          else
            flapping = ''
          output.push value['client']['name'] + ' (' + value['check'] + flapping + ') - ' + value['check']['output']
        if output.length is 0
          message = 'No events'
          if client != ''

          return
        results = JSON.parse(body)
        output = []
        for value in results
          console.log value
          message = value['path'] + ' added on ' + moment.unix(value['content']['timestamp']).format('HH:MM YY/M/D')
          if value['content']['reason']
