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

Commit 75bc206

Browse files
committed
Merge pull request #488 from gabeguz/master
Teach goodbad about users.
2 parents 2def900 + 742eb92 commit 75bc206

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scripts/goodbad.coffee

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ module.exports = (robot) ->
5757
goodbad = new GoodBad robot
5858

5959
robot.respond /(good) (.+?)$/i, (msg) ->
60-
good = goodbad.good msg.match[2]
60+
message = "#{msg.message.user.name}: #{msg.match[2]}"
61+
good = goodbad.good message
6162
msg.send "The sprint is thriving!"
6263

6364
robot.respond /(bad) (.+?)$/i, (msg) ->
64-
bad = goodbad.bad msg.match[2]
65+
message = "#{msg.message.user.name}: #{msg.match[2]}"
66+
bad = goodbad.bad message
6567
msg.send "The sprint is festering..."
6668

6769
robot.respond /(goodlist)/i, (msg) ->

0 commit comments

Comments
 (0)