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

Commit bac4c38

Browse files
Merge pull request #1281 from cwage/master
condensed ambush output into one line
2 parents 1b2d3ca + adf3749 commit bac4c38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/scripts/ambush.coffee

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ module.exports = (robot) ->
3636
robot.hear /./i, (msg) ->
3737
return unless robot.brain.data.ambushes?
3838
if (ambushes = robot.brain.data.ambushes[msg.message.user.name])
39-
msg.send "Hey, " + msg.message.user.name + ", while you were out:"
4039
for ambush in ambushes
41-
msg.send ambush[0] + " said: " + ambush[1]
42-
msg.send "That's it. You were greatly missed."
40+
msg.send msg.message.user.name + ": while you were out, " + ambush[0] + " said: " + ambush[1]
4341
delete robot.brain.data.ambushes[msg.message.user.name]

0 commit comments

Comments
 (0)