Skip to content

Commit

Permalink
Added for to attach message
Browse files Browse the repository at this point in the history
Added 'for' to be an option to handle requests like 

> bashobot attach chat log for ticket #13446
  • Loading branch information
Charlie Voiselle committed Apr 29, 2016
1 parent 875c827 commit 55a14c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hipchat_rooms.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ module.exports = (robot) ->
msg.reply err if err?
msg.reply created if created?

robot.respond /(?:attach |quote |chat )*\s*log to ticket [#]?([0-9]*)\s*$/i, (msg) ->
robot.respond /(?:attach |quote |chat )*\s*log (?:for|in|to)*\s*ticket [#]?([0-9]*)\s*$/i, (msg) ->
hipchatApi.printTranscript(msg, msg.match[1]) (err, generated) ->
msg.reply err if err?
msg.reply generated if generated?
Expand Down

0 comments on commit 55a14c1

Please sign in to comment.