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

# bad <bad thing> - Add something bad that happened this sprint
# goodlist - List all good things that happened
# badlist - List all bad things that happened

class GoodBad
  constructor: (@robot) ->

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

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

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

  robot.respond /(gooddel)/i, (msg) ->
    goodbad.gooddel()
    msg.send "Good things deleted." 

  robot.respond /(baddel)/i, (msg) ->
    goodbad.baddel()
    msg.send "Bad things deleted." 
