From b695b7f89b02bf59cb0c233b6d83bad1bb6f3859 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Fri, 24 Apr 2015 19:52:42 +0200 Subject: [PATCH] risolto che la nuova funzione fosse case sensitive --- scripts/misc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 22c6ce3..bef4709 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -38,7 +38,7 @@ module.exports = (robot) -> res.send 'sto parlando in '+res.message.room+', '+res.message.user.name robot.respond /ti amo/i, (res) -> res.send 'anche io ti amo '+(res.message.user.name+' ' or '')+'<3' - robot.hear /(?:ehi|ciao|(?:bella(?: li)?)) (?:asjon|assa|assion(?:i|e))(?:!)?/, (res) -> + robot.hear /(?:ehi|ciao|(?:bella(?: li)?)) (?:asjon|assa|assion(?:i|e))(?:!)?/i, (res) -> console.log res.match saluti = ['ciao', 'bella', 'รจ arrivato', 'eccolooo', 'dimmi'] res.send res.random(saluti)+' '+res.message.user.name+'!'