diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 2fa5ebc..18554ef 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -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]