From dfe44218c0ca3d7563b2d145b08cf75457bdafda Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 12 Jun 2018 13:42:51 +0000 Subject: [PATCH] only match whole words on "assa?" --- scripts/misc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 426ac3e..9fc4be0 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -124,5 +124,5 @@ module.exports = (robot) -> robot.respond /ci sei\?/i, (res) -> res.send res.random confirm - robot.hear /assa\?/, (res) -> + robot.hear /\bassa\?/, (res) -> res.send res.random confirm