                              .time.diff(last.time, 'hours', true) || 0
       timeSinceLastPing = +Math.abs(now.diff(lastPing, 'hours', true)) || 0
 
-      Logger.debug "isInactive: #{user.isInactive()},
+      Logger.debug "now: #{now.format('h:mm A, z')},
+                    isInactive: #{user.isInactive()},
                     start: #{start.format('h:mm A')},
                     end: #{end.format('h:mm A')},
                     timeSinceLastPunch: #{timeSinceLastPunch},

module.exports = (robot) ->
  Logger = require('../helpers/logger')(robot)

  hound = (slackuser, channel, forceHound=false) ->
    if robot.name is slackuser.name
      Logger.debug "Caught myself, don't hound the hound."
      return

                    timeSinceLastPing: #{timeSinceLastPing},
                    houndFrequency: #{user.settings.houndFrequency}"

      if (timeSinceLastPing == 0 or timeSinceLastPing >= user.settings.houndFrequency) and
         timeSinceLastPunch > 0.25
        if user.salary
          if not lastPunch and not user.isInactive() and not passive
            Logger.debug "Considering hounding #{user.slack} because of missing lastPunch during active period"
            if now.isAfter(start) and timeSinceStart >= 0.5
              user.hound strings.punchin[Math.floor(Math.random() * strings.punchin.length)], Logger
            else if now.isAfter(end) and timeSinceEnd >= 0.5
              user.hound strings.punchout[Math.floor(Math.random() * strings.punchout.length)], Logger
