From 74626e3935554ba14a9c519390e130894e9abe75 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Wed, 28 Oct 2015 16:00:58 +0100 Subject: [PATCH] Fix "gg wp" regex again Last time hopefully --- scripts/misc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 18554ef..094b14b 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -66,7 +66,7 @@ module.exports = (robot) -> res.send res.random(stato)+'. tu?' robot.respond /ridi/i, (res)-> res.send res.random risata - robot.hear /(^|.+ )gg(?!.*wp).*$/i, (res)-> + robot.hear /(^|.+ )gg(?!.*wp)( .+)?$/i, (res)-> res.send 'wp' robot.hear /^bravo (\w+).?$/i, (res)-> unless res.match[1].match /asjon|assa|assion|assioni(?:i|e)/i