Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #488 from gabeguz/master
Browse files Browse the repository at this point in the history
Teach goodbad about users.
  • Loading branch information
tombell committed Jul 4, 2012
2 parents 2def900 + 742eb92 commit 75bc206
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scripts/goodbad.coffee
Expand Up @@ -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) ->
Expand Down

0 comments on commit 75bc206

Please sign in to comment.