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

Commit adf3749

Browse files
committed
condensed ambush output into one line
1 parent 1b2d3ca commit adf3749

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)