From 99824a9ac296f590b65a73f29ccba26e454d9082 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Fri, 24 Apr 2015 12:05:59 +0200 Subject: [PATCH] fix punto di domanda in memoria --- scripts/memoria.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/memoria.coffee b/scripts/memoria.coffee index cc692e9..5ba759c 100644 --- a/scripts/memoria.coffee +++ b/scripts/memoria.coffee @@ -17,7 +17,7 @@ module.exports = (robot) -> delete mem[m] robot.brain.set 'memoria', mem # necessary? else res.send 'non so cosa sia' - robot.respond /(?:che )?((?:(?:(?:(?:cos|qual)\'è)|chi (?:sono|è)?))|(?:quali|cosa) sono) (.+)(?:\?)?/i, (res) -> + robot.respond /(?:che )?((?:(?:(?:(?:cos|qual)\'è)|chi (?:sono|è)?))|(?:quali|cosa) sono) ([\w ]+)(?:\?)?/i, (res) -> mem = robot.brain.get('memoria') or {} arg = (res.match[2] or res.match[1]).toLowerCase() verbo = res.match[1].toLowerCase().split(/[' ]/i)