This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #488 from gabeguz/master

Teach goodbad about users.
  • Loading branch information...
tombell committed Jul 4, 2012
2 parents 2def900 + 742eb92 commit 75bc2066770f88193287ce4212dae38b7abbe9a3
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/scripts/goodbad.coffee
@@ -57,11 +57,13 @@ module.exports = (robot) ->
goodbad = new GoodBad robot
robot.respond /(good) (.+?)$/i, (msg) ->
- good = goodbad.good msg.match[2]
+ message = "#{msg.message.user.name}: #{msg.match[2]}"
+ good = goodbad.good message
msg.send "The sprint is thriving!"
robot.respond /(bad) (.+?)$/i, (msg) ->
- bad = goodbad.bad msg.match[2]
+ message = "#{msg.message.user.name}: #{msg.match[2]}"
+ bad = goodbad.bad message
msg.send "The sprint is festering..."
robot.respond /(goodlist)/i, (msg) ->

0 comments on commit 75bc206

Please sign in to comment.