     else 
       msg.send "Nothing bad happened."
 
-  robot.respond /(task delete|delete task) #?(\d+)/i, (msg) ->
-    taskNum = msg.match[2]
-    task = tasks.deleteByNumber taskNum
-    msg.send "Task deleted: ##{task.num} - #{task.task}"
+  robot.respond /(delgood)/i, (msg) ->
+    goodbad.delgood()
+    msg.send "Good things deleted." 
+
+  robot.respond /(delbad)/i, (msg) ->
+    goodbad.delbad()
+    msg.send "Bad things deleted." 

    @badcache.push badthing
    @robot.brain.data.bad = @badcache
    badthing
  deleteByNumber: (num) ->
    index = @cache.map((n) -> n.num).indexOf(parseInt(num))
    task = @cache.splice(index, 1)[0]
    @robot.brain.data.tasks = @cache
    task

module.exports = (robot) ->
  goodbad = new GoodBad robot

    maxBadNum = if @badcache.length then Math.max.apply(Math,@badcache.map (n) -> n.num) else 0
    maxBadNum++
    maxBadNum  
  goodall: -> @goodcache
  badall: -> @badcache
  good: (goodString) ->
