From 22708faa59458c54cd98a8375fda000ab7633a41 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 23 Jun 2015 23:05:19 +0200 Subject: [PATCH] Fix regex to allow questions --- scripts/telegram.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/telegram.coffee b/scripts/telegram.coffee index 83abc03..c946d77 100644 --- a/scripts/telegram.coffee +++ b/scripts/telegram.coffee @@ -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']