{"action":"created","issue":{"url":"https://api.github.com/repos/silentrob/superscript/issues/35","labels_url":"https://api.github.com/repos/silentrob/superscript/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/silentrob/superscript/issues/35/comments","events_url":"https://api.github.com/repos/silentrob/superscript/issues/35/events","html_url":"https://github.com/silentrob/superscript/issues/35","id":54576691,"number":35,"title":"Redirecting reply gets \"undefined\"","user":{"login":"samuelazran","id":2499928,"avatar_url":"https://avatars.githubusercontent.com/u/2499928?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelazran","html_url":"https://github.com/samuelazran","followers_url":"https://api.github.com/users/samuelazran/followers","following_url":"https://api.github.com/users/samuelazran/following{/other_user}","gists_url":"https://api.github.com/users/samuelazran/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelazran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelazran/subscriptions","organizations_url":"https://api.github.com/users/samuelazran/orgs","repos_url":"https://api.github.com/users/samuelazran/repos","events_url":"https://api.github.com/users/samuelazran/events{/privacy}","received_events_url":"https://api.github.com/users/samuelazran/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-16T13:45:49Z","updated_at":"2015-01-18T12:47:29Z","closed_at":"2015-01-16T17:02:34Z","body":"Base on this section in the docs:\r\nhttp://superscriptjs.com/documentation/scripting#redirect\r\nI've created this script:\r\nmain.ss:\r\n\r\n    + ~emohello\r\n    - Hi! {@ask}\r\n    - Hello, {@ask}\r\n    - Howdy, {@ask}\r\n    - Ola, {@ask}\r\n    \r\n    + ask\r\n    - How are you?\r\n    - How you doing?\r\n    - What's up?\r\n    \r\nBut the result is:\r\n\r\n>You> hi\r\n>Bot> Howdy, undefined\r\n>You> Hello\r\n>Bot> Hello, undefined\r\n\r\nAnd the debug log from the server:\r\n\r\n    $ DEBUG=*,-Utils node server.js\r\n    Script Loading Plugin +0ms ./plugins oppisite\r\n    Script Loading Plugin +4ms ./plugins rhymes\r\n    Script Loading Plugin +0ms ./plugins syllable\r\n    Script Loading Plugin +0ms ./plugins letterLookup\r\n    Script Loading Plugin +0ms ./plugins wordLength\r\n    Script Loading Plugin +4ms ./plugins nextNumber\r\n    Script Loading Plugin +0ms ./plugins createFact\r\n    Script Loading Plugin +1ms ./plugins resolveAdjective\r\n    Script Loading Plugin +0ms ./plugins evaluateExpression\r\n    Script Loading Plugin +0ms ./plugins numToRoman\r\n    Script Loading Plugin +0ms ./plugins numToHex\r\n    Script Loading Plugin +0ms ./plugins numToBinary\r\n    Script Loading Plugin +0ms ./plugins numMissing\r\n    Script Loading Plugin +0ms ./plugins numSequence\r\n    Script Loading Plugin +0ms ./plugins hasName\r\n    Script Loading Plugin +0ms ./plugins has\r\n    Script Loading Plugin +0ms ./plugins findLoc\r\n    Script Loading Plugin +0ms ./plugins tooAdjective\r\n    Script Loading Plugin +0ms ./plugins usedFor\r\n    Script Loading Plugin +0ms ./plugins resolveFact\r\n    Script Loading Plugin +0ms ./plugins putA\r\n    Script Loading Plugin +0ms ./plugins isA\r\n    Script Loading Plugin +0ms ./plugins colorLookup\r\n    Script Loading Plugin +0ms ./plugins makeChoice\r\n    Script Loading Plugin +0ms ./plugins findMoney\r\n    Script Loading Plugin +0ms ./plugins findDate\r\n    Script Loading Plugin +0ms ./plugins locatedAt\r\n    Script Loading Plugin +0ms ./plugins aquireGoods\r\n    Script Loading Plugin +0ms ./plugins bail\r\n    Script Loading Plugin +1ms ./plugins one\r\n    Script Loading Plugin +0ms ./plugins num\r\n    Script Loading Plugin +0ms ./plugins changetopic\r\n    Script Loading Plugin +0ms ./plugins changefunctionreply\r\n    Script Loading Plugin +0ms ./plugins getDOW\r\n    Script Loading Plugin +0ms ./plugins getDate\r\n    Script Loading Plugin +0ms ./plugins getDateTomorrow\r\n    Script Loading Plugin +0ms ./plugins getSeason\r\n    Script Loading Plugin +0ms ./plugins getTime\r\n    Script Loading Plugin +0ms ./plugins getTimeOfDay\r\n    Script Loading Plugin +0ms ./plugins getDayOfWeek\r\n    Script Loading Plugin +0ms ./plugins getMonth\r\n    Script Loading Plugin +0ms ./plugins save\r\n    Script Loading Plugin +0ms ./plugins get\r\n    Script Loading Plugin +0ms ./plugins createUserFact\r\n    Script Loading Plugin +0ms ./plugins wordnetDefine\r\n    Script Loading Plugin +0ms ./plugins plural\r\n    Script Loading Plugin +0ms ./plugins not\r\n    Script Loading Plugin +1ms ./plugins lowercase\r\n    Normalizer Loaded File +0ms { key: '_sys', file: 'systemessentials.txt' }\r\n    Normalizer Loaded File +5ms { key: '_extra', file: 'substitutes.txt' }\r\n    Normalizer Loaded File +333ms { key: '_contractions', file: 'contractions.txt' }\r\n    Normalizer Loaded File +18ms { key: '_interjections', file: 'interjections.txt' }\r\n    Normalizer Loaded File +76ms { key: '_britsh', file: 'british.txt' }\r\n    Normalizer Loaded File +132ms { key: '_spellfix', file: 'spellfix.txt' }\r\n    Normalizer Loaded File +776ms { key: '_texting', file: 'texting.txt' }\r\n    Normalizer Done Reading Subs +18ms\r\n    Normalizer Done Loading files +0ms\r\n    Script Questions Loaded +1s\r\n    Script System Loaded, waiting for replies +1ms\r\nTCP server running on port 2000.\r\n\r\nUser '127.0.0.1:55582' has connected.\r\n\r\n    Script Connecting User +7s 127.0.0.1:55582\r\n    User user Connected +0ms { name: '127.0.0.1:55582',\r\n    status: 1,\r\n    currentTopic: 'random',\r\n    memory: \r\n     { conceptToList: [Function],\r\n         create: [Function],\r\n         db: \r\n            { getStream: [Function],\r\n                get: [Function],\r\n                put: [Function],\r\n                del: [Function],\r\n                putStream: [Function],\r\n                delStream: [Function],\r\n                close: [Function],\r\n                v: [Function: Variable],\r\n                searchStream: [Function],\r\n                search: [Function],\r\n                isOpen: [Function],\r\n                nav: [Function],\r\n                generateBatch: [Function: generateBatch],\r\n                joinStream: [Function],\r\n                join: [Function],\r\n                approximateSize: [Function] },\r\n         createUserDB: [Function],\r\n         createUserDBWithData: [Function] },\r\n    conversationStartedAt: Fri Jan 16 2015 13:29:42 GMT+0000 (UTC),\r\n    lastMessageSentAt: null,\r\n    volley: 0,\r\n    rally: 0,\r\n    __history__: \r\n     { input: [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,    ],\r\n         reply: [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,    ],\r\n         topic: [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,    ] } }\r\n    Script Message Recieved from '127.0.0.1:55582' +5s hi\r\n    Message Creating message from: +0ms ~emohello\r\n    Message fullnames +975ms names []\r\n    Message Fetch List +1ms\r\n    Message Return with    +0ms []\r\n    Message fullnames +1ms nouns []\r\n    Message Things +0ms [ '~emohello' ]\r\n    Message Things +0ms []\r\n    Message Message +1ms { facts: \r\n     { conceptToList: [Function],\r\n         create: [Function],\r\n         db: \r\n            { breadthFirst: [Function: breadthFirst],\r\n                deepFirst: [Function: deepFirst] },\r\n         createUserDB: [Function],\r\n         createUserDBWithData: [Function] },\r\n    createdAt: Fri Jan 16 2015 13:29:49 GMT+0000 (UTC),\r\n    raw: '~emohello',\r\n    clean: '~emohello',\r\n    crc: 'a5926307',\r\n    dict: { words: [ [Object] ] },\r\n    words: [ '~emohello' ],\r\n    cwords: [ '~emohello' ],\r\n    taggedWords: \r\n     [ [ '~emohello', 'NN' ],\r\n         pushUnique: [ [Function], [Function] ],\r\n         chunk: [ [Function], [Function] ] ],\r\n    lemWords: [ '~emohello' ],\r\n    lemString: '~emohello',\r\n    posString: 'NN',\r\n    qtype: '',\r\n    qSubType: '',\r\n    isQuestion: false,\r\n    sentiment: 0,\r\n    nouns: [ '~emohello' ],\r\n    names: [],\r\n    list: [],\r\n    adjectives: [],\r\n    adverbs: [],\r\n    verbs: [],\r\n    pnouns: [],\r\n    pronouns: [],\r\n    compareWords: [],\r\n    numbers: [],\r\n    compare: false,\r\n    date: null,\r\n    cNouns: [ '~emohello' ],\r\n    numericExp: false,\r\n    halfNumericExp: false,\r\n    entities: [ '~emohello' ] }\r\n    User getTopic +7s random\r\n    Topics allTopics +0ms [ '__pre__', 'random', '__post__' ]\r\n    GetReply Topics to check +0ms [ '__pre__', 'random', '__post__' ]\r\n    Topic FindMatch +0ms random\r\n    Topic Try to match (clean)'~emohello' against ~emohello (~emohello) topic: random +1ms\r\n    Topic Try to match (lemma)'~emohello' against ~emohello (~emohello) topic: random +0ms\r\n    Topic Found Match with topic random +0ms\r\n    Topic Try to match (clean)'~emohello' against ask (ask) topic: random +1ms\r\n    Topic Try to match (lemma)'~emohello' against ask (ask) topic: random +0ms\r\n    GetReply match itor +2ms { stars: [],\r\n    trigger: \r\n     { id: 'a5926307',\r\n         trigger: '~emohello',\r\n         replies: \r\n            { '20c01f40': 'Hi! {@ask}',\r\n                '6f26a364': 'Hello, {@ask}',\r\n                c4cb7385: 'Howdy, {@ask}',\r\n                '8b163f90': 'Ola, {@ask}' },\r\n         redirect: false,\r\n         isQuestion: false,\r\n         qType: false,\r\n         qSubType: false,\r\n         filter: false },\r\n    topic: 'random' }\r\n    GetReply filterRepliesByFunction +1ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    GetReply filterByFunction Results +2ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    GetReply filterRepliesBySeen +1ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    GetReply Bucket +0ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    ProcessTags Inline redirection to: ask +0ms\r\n    GetReply Called Recursively +4ms 1\r\n    User getTopic +11ms random\r\n    Topics allTopics +11ms [ '__pre__', 'random', '__post__' ]\r\n    GetReply Topics to check +0ms random\r\n    ProcessTags CallBack from inline redirect +2ms undefined\r\n    ProcessTags CallBack from inline redirect +1ms Howdy, undefined\r\n    GetReply err, reply +2ms null Howdy, undefined\r\n    Message Creating message from: +16ms Howdy, undefined\r\n    Message fullnames +311ms names []\r\n    Message Fetch List +0ms\r\n    Message Return with    +0ms []\r\n    Message fullnames +7ms nouns []\r\n    Message Things +0ms [ '~emohello' ]\r\n    Message Things +0ms []\r\n    Message Message +1ms { facts: \r\n     { conceptToList: [Function],\r\n         create: [Function],\r\n         db: \r\n            { breadthFirst: [Function: breadthFirst],\r\n                deepFirst: [Function: deepFirst] },\r\n         createUserDB: [Function],\r\n         createUserDBWithData: [Function] },\r\n    createdAt: Fri Jan 16 2015 13:29:50 GMT+0000 (UTC),\r\n    raw: 'Howdy, undefined',\r\n    clean: '~emohello, undefined',\r\n    crc: '84658c97',\r\n    dict: { words: [ [Object], [Object], [Object] ] },\r\n    words: [ '~emohello', ',', 'undefined' ],\r\n    cwords: [ '~emohello', ',', 'undefined' ],\r\n    taggedWords: \r\n     [ [ '~emohello', 'NN' ],\r\n         [ ',', ',' ],\r\n         [ 'undefined', 'JJ' ],\r\n         pushUnique: [ [Function], [Function] ],\r\n         chunk: [ [Function], [Function] ] ],\r\n    lemWords: [ '~emohello', ',', 'undefined' ],\r\n    lemString: '~emohello , undefined',\r\n    posString: 'NN , JJ',\r\n    qtype: '',\r\n    qSubType: '',\r\n    isQuestion: false,\r\n    sentiment: 0,\r\n    nouns: [ '~emohello' ],\r\n    names: [],\r\n    list: [],\r\n    adjectives: [ 'undefined' ],\r\n    adverbs: [],\r\n    verbs: [],\r\n    pnouns: [],\r\n    pronouns: [],\r\n    compareWords: [],\r\n    numbers: [],\r\n    compare: false,\r\n    date: null,\r\n    cNouns: [ '~emohello' ],\r\n    numericExp: false,\r\n    halfNumericExp: false,\r\n    entities: [ '~emohello' ] }\r\n    User Updating History +324ms\r\n    User getTopic +0ms random\r\n    Script Update and Reply to user '127.0.0.1:55582' +2s Howdy, undefined\r\n    Script Message Recieved from '127.0.0.1:55582' +5.4m Hello\r\n    Message Creating message from: +5.4m ~emohello\r\n    Message fullnames +115ms names []\r\n    Message Fetch List +0ms\r\n    Message Return with    +1ms []\r\n    Message fullnames +0ms nouns []\r\n    Message Things +0ms [ '~emohello' ]\r\n    Message Things +0ms []\r\n    Message Message +0ms { facts: \r\n     { conceptToList: [Function],\r\n         create: [Function],\r\n         db: \r\n            { breadthFirst: [Function: breadthFirst],\r\n                deepFirst: [Function: deepFirst] },\r\n         createUserDB: [Function],\r\n         createUserDBWithData: [Function] },\r\n    createdAt: Fri Jan 16 2015 13:35:15 GMT+0000 (UTC),\r\n    raw: '~emohello',\r\n    clean: '~emohello',\r\n    crc: 'a5926307',\r\n    dict: { words: [ [Object] ] },\r\n    words: [ '~emohello' ],\r\n    cwords: [ '~emohello' ],\r\n    taggedWords: \r\n     [ [ '~emohello', 'NN' ],\r\n         pushUnique: [ [Function], [Function] ],\r\n         chunk: [ [Function], [Function] ] ],\r\n    lemWords: [ '~emohello' ],\r\n    lemString: '~emohello',\r\n    posString: 'NN',\r\n    qtype: '',\r\n    qSubType: '',\r\n    isQuestion: false,\r\n    sentiment: 0,\r\n    nouns: [ '~emohello' ],\r\n    names: [],\r\n    list: [],\r\n    adjectives: [],\r\n    adverbs: [],\r\n    verbs: [],\r\n    pnouns: [],\r\n    pronouns: [],\r\n    compareWords: [],\r\n    numbers: [],\r\n    compare: false,\r\n    date: null,\r\n    cNouns: [ '~emohello' ],\r\n    numericExp: false,\r\n    halfNumericExp: false,\r\n    entities: [ '~emohello' ] }\r\n    User getTopic +5.4m random\r\n    Topics allTopics +5.4m [ '__pre__', 'random', '__post__' ]\r\n    GetReply Topics to check +5.4m [ '__pre__', 'random', '__post__' ]\r\n    Topic FindMatch +5.4m random\r\n    Topic Try to match (clean)'~emohello' against ~emohello (~emohello) topic: random +0ms\r\n    Topic Try to match (lemma)'~emohello' against ~emohello (~emohello) topic: random +0ms\r\n    Topic Found Match with topic random +0ms\r\n    Topic Try to match (clean)'~emohello' against ask (ask) topic: random +1ms\r\n    Topic Try to match (lemma)'~emohello' against ask (ask) topic: random +0ms\r\n    GetReply match itor +2ms { stars: [],\r\n    trigger: \r\n     { id: 'a5926307',\r\n         trigger: '~emohello',\r\n         replies: \r\n            { '20c01f40': 'Hi! {@ask}',\r\n                '6f26a364': 'Hello, {@ask}',\r\n                c4cb7385: 'Howdy, {@ask}',\r\n                '8b163f90': 'Ola, {@ask}' },\r\n         redirect: false,\r\n         isQuestion: false,\r\n         qType: false,\r\n         qSubType: false,\r\n         filter: false },\r\n    topic: 'random' }\r\n    GetReply filterRepliesByFunction +0ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    GetReply filterByFunction Results +2ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    GetReply filterRepliesBySeen +0ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    GetReply Bucket +3ms [ { crc: '20c01f40',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hi! {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '6f26a364',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Hello, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: 'c4cb7385',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Howdy, {@ask}',\r\n        trigger_id: 'a5926307' },\r\n    { crc: '8b163f90',\r\n        stars: [],\r\n        topic: 'random',\r\n        reply: 'Ola, {@ask}',\r\n        trigger_id: 'a5926307' } ]\r\n    ProcessTags Inline redirection to: ask +5.4m\r\n    GetReply Called Recursively +1ms 1\r\n    User getTopic +9ms random\r\n    Topics allTopics +9ms [ '__pre__', 'random', '__post__' ]\r\n    GetReply Topics to check +2ms random\r\n    ProcessTags CallBack from inline redirect +2ms undefined\r\n    ProcessTags CallBack from inline redirect +0ms Hello, undefined\r\n    GetReply err, reply +1ms null Hello, undefined\r\n    Message Creating message from: +13ms Hello, undefined\r\n    Message fullnames +120ms names []\r\n    Message Fetch List +0ms\r\n    Message Return with    +1ms []\r\n    Message fullnames +1ms nouns []\r\n    Message Things +0ms [ '~emohello' ]\r\n    Message Things +1ms []\r\n    Message Message +0ms { facts: \r\n     { conceptToList: [Function],\r\n         create: [Function],\r\n         db: \r\n            { breadthFirst: [Function: breadthFirst],\r\n                deepFirst: [Function: deepFirst] },\r\n         createUserDB: [Function],\r\n         createUserDBWithData: [Function] },\r\n    createdAt: Fri Jan 16 2015 13:35:15 GMT+0000 (UTC),\r\n    raw: 'Hello, undefined',\r\n    clean: '~emohello, undefined',\r\n    crc: '73c66d71',\r\n    dict: { words: [ [Object], [Object], [Object] ] },\r\n    words: [ '~emohello', ',', 'undefined' ],\r\n    cwords: [ '~emohello', ',', 'undefined' ],\r\n    taggedWords: \r\n     [ [ '~emohello', 'NN' ],\r\n         [ ',', ',' ],\r\n         [ 'undefined', 'JJ' ],\r\n         pushUnique: [ [Function], [Function] ],\r\n         chunk: [ [Function], [Function] ] ],\r\n    lemWords: [ '~emohello', ',', 'undefined' ],\r\n    lemString: '~emohello , undefined',\r\n    posString: 'NN , JJ',\r\n    qtype: '',\r\n    qSubType: '',\r\n    isQuestion: false,\r\n    sentiment: 0,\r\n    nouns: [ '~emohello' ],\r\n    names: [],\r\n    list: [],\r\n    adjectives: [ 'undefined' ],\r\n    adverbs: [],\r\n    verbs: [],\r\n    pnouns: [],\r\n    pronouns: [],\r\n    compareWords: [],\r\n    numbers: [],\r\n    compare: false,\r\n    date: null,\r\n    cNouns: [ '~emohello' ],\r\n    numericExp: false,\r\n    halfNumericExp: false,\r\n    entities: [ '~emohello' ] }\r\n    User Updating History +129ms\r\n    User getTopic +0ms random\r\n    Script Update and Reply to user '127.0.0.1:55582' +372ms Hello, undefined"},"comment":{"url":"https://api.github.com/repos/silentrob/superscript/issues/comments/70407070","html_url":"https://github.com/silentrob/superscript/issues/35#issuecomment-70407070","issue_url":"https://api.github.com/repos/silentrob/superscript/issues/35","id":70407070,"user":{"login":"samuelazran","id":2499928,"avatar_url":"https://avatars.githubusercontent.com/u/2499928?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelazran","html_url":"https://github.com/samuelazran","followers_url":"https://api.github.com/users/samuelazran/followers","following_url":"https://api.github.com/users/samuelazran/following{/other_user}","gists_url":"https://api.github.com/users/samuelazran/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelazran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelazran/subscriptions","organizations_url":"https://api.github.com/users/samuelazran/orgs","repos_url":"https://api.github.com/users/samuelazran/repos","events_url":"https://api.github.com/users/samuelazran/events{/privacy}","received_events_url":"https://api.github.com/users/samuelazran/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T12:47:29Z","updated_at":"2015-01-18T12:47:29Z","body":"Wow. this is really cool that you can push upgrades so fast. I guess it's due to the flexibility of javascript :)\r\n\r\nThe function ^respond is ok for me, but ^topicRedirect is more precise and I've tested it this morning and it does the job for me. I'm translating a virtual agent I've wrote with ChatScript to SuperScript to see the differences.  \r\n\r\nI don't seems to understand the meaning of \"current topic\" in SuperScript. seems to me (and correct me if I'm wrong) like the system will try to match every possible trigger to the input from every topic. so there is not much of a limited scope in here. in ChatScript the system will first check for responders / rejoinders in the \"current topic\" and if no match then it will look for a gambit in the current topic and only if none available then the system will try other topics (only if some words in the input match the topic keywords).\r\n\r\nThanks"}}