     robot.brain.violation ?= {}
     @brain = robot.brain
 
-    add: (user, credits, dateKey) ->
-      dateKey ?= moment().format('YYYYMMDD')
+  add: (user, credits, date) ->
+    date ?= moment().format('YYYYMMDD')
 
-      try
-        if not @brain.violation[user]
-          @brain.violation[user] = {}
-          @brain.violation[user][dateKey] = credits
+    try
+      if not @brain.violation[user]
+        @brain.violation[user] = {}
+        @brain.violation[user][date] = credits
+      else
+        if not @brain.violation[user][date]
+          @brain.violation[user][date] = credits
         else
-          if not @brain.violation[user][dateKey]
-            @brain.violation[user][dateKey] = credits
-          else
-            @brain.violation[user][dateKey] += credits
-      catch error
-        console.log error
+          @brain.violation[user][date] += credits
+    catch error
+      console.log error

    'cunt',
    'damn',
    'damnit',
    'depp',
    'dick',
    'douche',
    'fag',
    'fotze',
    'fuck',
    'fucked',
    'fucking',
    'kacke',
    'piss',
    'pisse',
    'scheisse',
    'schlampe',
    'shit',
    'wank',
    'wichser'
  ]
  regex = new RegExp("\\b(#{words.join('|')})\\b", 'ig')

  robot.hear regex, (msg) ->

    log.add user, credit

    if robot.brain.violation[user][key]
      warn = "#{user}, you are fined #{robot.brain.violation[user][key]} credits today"
      msg.send "You are fined #{credit} credit#{['s' if credit > 1]} for a violation of the Verbal Morality Statute. (#{warn})"

class Logger

