Skip to content

Commit

Permalink
fix: bye.coffee gn triggers bot response
Browse files Browse the repository at this point in the history
  • Loading branch information
csoni111 committed Jun 21, 2017
1 parent bb87034 commit e86d1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bye.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ ways_to_say_good_night = [
]

module.exports = (robot) ->
robot.hear /(good night|goodnight|cya|bye|nighty night|gn)/i, (msg) ->
robot.hear /\b(good night|goodnight|cya|bye|nighty night|gn)\b/i, (msg) ->
msg.send msg.random ways_to_say_good_night

0 comments on commit e86d1dc

Please sign in to comment.