diff --git a/scripts/memoria.coffee b/scripts/memoria.coffee index b6b5cb5..02b54c4 100644 --- a/scripts/memoria.coffee +++ b/scripts/memoria.coffee @@ -55,7 +55,7 @@ module.exports = (robot) -> robot.respond /memory-dump/i, (res) -> res.send JSON.stringify robot.brain.get('memoria') - robot.respond /(?:che )?(?:(?:(?:(?:(cos|qual|quand)\'è)|(?:chi (sono|è)?)))|(?:quali|cosa) sono) ([^?]+)(?:\?)?/i, (res) -> + robot.respond /(?:che )?(?:(?:(?:(?:(cos|qual|quand)(?:\'| )?è)|(?:chi (sono|è)?)))|(?:quali|cosa) sono) ([^?]+)(?:\?)?/i, (res) -> query = undefined # Estrazione query (quand,cos,qual,chi...) if res.match[2] then query = res.match[2] or res.match[1]