Restrict overzealous "gg wp" regex.
This commit is contained in:
parent
082112cc21
commit
283cca28c0
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user