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+'!'