{"action":"created","issue":{"url":"https://api.github.com/repos/keiffster/program-y/issues/63","repository_url":"https://api.github.com/repos/keiffster/program-y","labels_url":"https://api.github.com/repos/keiffster/program-y/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/keiffster/program-y/issues/63/comments","events_url":"https://api.github.com/repos/keiffster/program-y/issues/63/events","html_url":"https://github.com/keiffster/program-y/issues/63","id":246517769,"number":63,"title":"AIML 2.0 Spec implementation?","user":{"login":"stairway-to","id":30416644,"avatar_url":"https://avatars2.githubusercontent.com/u/30416644?v=4","gravatar_id":"","url":"https://api.github.com/users/stairway-to","html_url":"https://github.com/stairway-to","followers_url":"https://api.github.com/users/stairway-to/followers","following_url":"https://api.github.com/users/stairway-to/following{/other_user}","gists_url":"https://api.github.com/users/stairway-to/gists{/gist_id}","starred_url":"https://api.github.com/users/stairway-to/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stairway-to/subscriptions","organizations_url":"https://api.github.com/users/stairway-to/orgs","repos_url":"https://api.github.com/users/stairway-to/repos","events_url":"https://api.github.com/users/stairway-to/events{/privacy}","received_events_url":"https://api.github.com/users/stairway-to/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-07-29T12:03:00Z","updated_at":"2017-08-01T12:36:04Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to get [Blackjack.aiml](http://www.square-bear.co.uk/aiml/blackjack.aiml) running.\r\nSome pieces of the code does not work.\r\n\r\n```\r\n<category>\r\n<pattern>BLACKJACK</pattern>\r\n<template>\r\n<think>\r\n\t<set name=\"coins\">50</set>\r\n\t<set name=\"bankcoin\">coins</set>\r\n</think>\r\nWelcome to my Blackjack game. You start the game with <get name=\"coins\"/> coins.<br/><br/>\r\nHOUSE RULES:<br/>\r\n- Dealer must draw to 17<br/>\r\n- Blackjack pays 3 for 2 (rounded up to the nearest coin)<br/>\r\n- Maximum bet is 10 coins<br/>\r\n- The game ends when you either lose all your coins or break the bank by making 250 coins<br/><br/>Good luck!<br/><br/>\r\nType D to deal.\r\n</template>\r\n</category>\r\n\r\n<category>\r\n<pattern>D</pattern>\r\n<that>TYPE D TO DEAL</that>\r\n<template>\r\n<think>\r\n\t<set name=\"topic\">BLACKJACK</set>\r\n</think>\r\nType \"QUIT\" to end the game.<br/><br/>\r\nBank: <get name=\"coins\"/> <get name=\"bankcoin\"/>.<br/>\r\nHow many coins do you wish to bet (1-10)?\r\n</template>\r\n</category>\r\n```\r\n\r\nRemoving all the `<br/>` I was able to get the 'BLACKJACK' pattern to work.\r\n\r\nFor 'that' tag:\r\nI'm not able to get to the 'D' pattern. According to [Pandorabots docs <that>](http://docs.pandorabots.com/aiml/that/), I just need to use the last sentence, 'TYPE D TO DEAL' in this case. Tried doing '* Type D to deal' (with same case & no `<br/>`). Still couldn't get it to work.\r\n\r\n**BLACKJACK**\r\n_Welcome to my Blackjack game. You start the game with 50 coins. HOUSE RULES: - Dealer must draw to 17 - Blackjack pays 3 for 2 (rounded up to the nearest coin) - Maximum bet is 10 coins - The game ends when you either lose all your coins or break the bank by making 250 coins Good luck! Type D to deal._\r\n**D**\r\n_Sorry, I don't have an answer for that!_\r\n \r\n\r\nBut for some reason the following works. I'm not able to figure out what's the difference.\r\n```\r\n   <category>\r\n      <pattern>HI</pattern>\r\n      <template>Do you like comedy movies</template>  \r\n   </category>\r\n   \r\n   <category>\r\n      <pattern>YES</pattern>\r\n      <that>* comedy movies</that>\r\n      <template>Nice, I like comedy movies too.</template>\r\n   </category>\r\n   \r\n   <category>\r\n      <pattern>NO</pattern>\r\n      <that>* comedy movies</that>\r\n      <template>Ok! But I like comedy movies.</template>\r\n   </category> \r\n```\r\n**HI**\r\n_Do you like comedy movies_\r\n**NO**\r\nOk! But I like comedy movies.\r\n\r\nI have to port ~30 aiml files.\r\n \r\n - How can I change the aiml to get this working? Any way to know what tags work and what doesn't?\r\n - How can I get to work on extending the required behaviour using program-y?\r\n\r\nThanks!\r\n\r\n   "},"comment":{"url":"https://api.github.com/repos/keiffster/program-y/issues/comments/319357454","html_url":"https://github.com/keiffster/program-y/issues/63#issuecomment-319357454","issue_url":"https://api.github.com/repos/keiffster/program-y/issues/63","id":319357454,"user":{"login":"stairway-to","id":30416644,"avatar_url":"https://avatars2.githubusercontent.com/u/30416644?v=4","gravatar_id":"","url":"https://api.github.com/users/stairway-to","html_url":"https://github.com/stairway-to","followers_url":"https://api.github.com/users/stairway-to/followers","following_url":"https://api.github.com/users/stairway-to/following{/other_user}","gists_url":"https://api.github.com/users/stairway-to/gists{/gist_id}","starred_url":"https://api.github.com/users/stairway-to/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stairway-to/subscriptions","organizations_url":"https://api.github.com/users/stairway-to/orgs","repos_url":"https://api.github.com/users/stairway-to/repos","events_url":"https://api.github.com/users/stairway-to/events{/privacy}","received_events_url":"https://api.github.com/users/stairway-to/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T12:36:04Z","updated_at":"2017-08-01T12:36:04Z","body":"I'm on Mac.\r\n\r\nI'm getting the error on all .aiml files:\r\n`No node [xml] registered in Template Node Factory in [./aiml/blackjack.aiml]`\r\n\r\nIn my config folder, I have `preprocessors.conf` `template_nodes.conf` `test_postprocessors.conf` `postprocessors.conf` `pattern_nodes.conf` & `*.txt`\r\n"}}
{"actor":{"display_login":"stairway-to"}}