Restrict overzealous "gg wp" regex.

This commit is contained in:
Michele Guerini Rocco 2015-07-16 12:00:05 +02:00
parent 082112cc21
commit 283cca28c0

View File

@ -66,8 +66,8 @@ module.exports = (robot) ->
res.send res.random(stato)+'. tu?'
robot.respond /ridi/i, (res)->
res.send res.random risata
robot.hear /gg( \w+)?\.?$/i, (res)->
res.send 'wp' unless res.match[1] is ' wp'
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
res.send res.random(complim)+' '+res.match[1]