Fix regex to allow questions

This commit is contained in:
rnhmjoj 2015-06-23 23:05:19 +02:00
parent ea408b3b34
commit 22708faa59

View File

@ -96,7 +96,7 @@ module.exports = (robot) ->
else
res.send "fatto!"
robot.respond /(mi )?invit(i|ami) (in|nel gruppo) (.+)\??/, (res) ->
robot.respond /(mi )?invit(i|ami) (in|nel gruppo) ([^?]+)\??/, (res) ->
denied = ['BZBZ ADMIN-NOT-DETECTED', 'BZBZ IS-NOT-AUTHORIZED', 'BZBZ ACCESS-DENIED']
nope = ['ahahah NO', 'mai sentito questo?', 'invita anche me magari']
ok = ['provvedo subito', 'ok', 'certo', 'va bene']