Skip to content

Commit e86d1dc

Browse files
committed
fix: bye.coffee gn triggers bot response
1 parent bb87034 commit e86d1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/bye.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ ways_to_say_good_night = [
4848
]
4949

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

0 commit comments

Comments
 (0)