 # bad <bad thing> - Add something bad that happened this sprint
 # goodlist - List all good things that happened
 # badlist - List all bad things that happened
+# gooddel - Delete all good things that happened
+# baddel - Delete all bad things that happened
 
 class GoodBad
   constructor: (@robot) ->

    msg.send "The sprint is festering..."

  robot.respond /(goodlist)/i, (msg) ->
    if goodbad.goodall().length > 0
      response = ""
      for good, num in goodbad.goodall()
        response += "##{good.num} - #{good.good}\n"
      msg.send response
    else 
      msg.send "Nothing good happened."

  robot.respond /(badlist)/i, (msg) ->
    if goodbad.badall().length > 0
      response = ""
      for bad, num in goodbad.badall()
        response += "##{bad.num} - #{bad.bad}\n"
      msg.send response
    else 
      msg.send "Nothing bad happened."

  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
  gooddel: ->
    good = @goodcache = []
    good 
  baddel: ->
    bad = @badcache = []
    bad

