{"action":"created","issue":{"url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/939","repository_url":"https://api.github.com/repos/MycroftAI/mycroft-core","labels_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/939/labels{/name}","comments_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/939/comments","events_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/939/events","html_url":"https://github.com/MycroftAI/mycroft-core/pull/939","id":247177418,"number":939,"title":"Implement Padatious support (examples based intent parser)","user":{"login":"MatthewScholefield","id":5875019,"avatar_url":"https://avatars0.githubusercontent.com/u/5875019?v=4","gravatar_id":"","url":"https://api.github.com/users/MatthewScholefield","html_url":"https://github.com/MatthewScholefield","followers_url":"https://api.github.com/users/MatthewScholefield/followers","following_url":"https://api.github.com/users/MatthewScholefield/following{/other_user}","gists_url":"https://api.github.com/users/MatthewScholefield/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewScholefield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewScholefield/subscriptions","organizations_url":"https://api.github.com/users/MatthewScholefield/orgs","repos_url":"https://api.github.com/users/MatthewScholefield/repos","events_url":"https://api.github.com/users/MatthewScholefield/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewScholefield/received_events","type":"User","site_admin":false},"labels":[{"id":664720248,"url":"https://api.github.com/repos/MycroftAI/mycroft-core/labels/CLA:%20Yes","name":"CLA: Yes","color":"0e8a16","default":false},{"id":572162072,"url":"https://api.github.com/repos/MycroftAI/mycroft-core/labels/tagged%20for%20review%20and%20potential%20merge","name":"tagged for review and potential merge","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-08-01T19:35:10Z","updated_at":"2017-08-17T17:56:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MycroftAI/mycroft-core/pulls/939","html_url":"https://github.com/MycroftAI/mycroft-core/pull/939","diff_url":"https://github.com/MycroftAI/mycroft-core/pull/939.diff","patch_url":"https://github.com/MycroftAI/mycroft-core/pull/939.patch"},"body":"This brings in Padatious support for Mycroft. Usage in a skill is as follows:\r\n\r\n\\_\\_init\\_\\_.py:\r\n```Python\r\nfrom mycroft.skills.core import MycroftSkill\r\nclass TomatoSkill(MycroftSkill):\r\n    def __init__(self):\r\n        MycroftSkill.__init__(self)\r\n\r\n    def initialize(self):\r\n        self.register_intent_file('what.is.intent', self.handle_what_is)\r\n        self.register_intent_file('do.you.like.intent', self.handle_do_you_like)\r\n\r\n    def handle_what_is(self, message):\r\n        self.speak('A tomato is a big red thing')\r\n\r\n    def handle_do_you_like(self, message):\r\n        tomato_type = message.get('type')\r\n        if tomato_type is not None:\r\n            self.speak(\"Well, I'm not sure if I like \" + tomato_type + \" tomatoes.\")\r\n        else:\r\n            self.speak('Of course I like tomatoes!')\r\n```\r\n\r\nvocab/en-us/what.is.intent:\r\n```\r\nWhat would you say a tomato is?\r\nWhat's a tomato?\r\nDescribe a tomato.\r\nWhat defines a tomato?\r\n```\r\n\r\nvocab/en-us/do.you.like.intent:\r\n```\r\nAre you fond of tomatoes?\r\nDo you like tomatoes?\r\nWhat are your thoughts on tomatoes?\r\n\r\nAre you fond of {type} tomatoes?\r\nDo you like {type} tomatoes?\r\nWhat are your thoughts on {type} tomatoes?\r\n```\r\n\r\nFor debugging, you can use `./mycroft.sh start && tail -f scripts/logs/mycroft-* | grep -i padatious`"},"comment":{"url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/comments/323147531","html_url":"https://github.com/MycroftAI/mycroft-core/pull/939#issuecomment-323147531","issue_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/939","id":323147531,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars1.githubusercontent.com/u/2354108?v=4","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T17:56:01Z","updated_at":"2017-08-17T17:56:01Z","body":"\n[![Coverage Status](https://coveralls.io/builds/12882324/badge)](https://coveralls.io/builds/12882324)\n\nCoverage decreased (-0.4%) to 38.229% when pulling **236116409c58e0f3a6054cea89dc215f0c654211 on MatthewScholefield:feature/padatious-engine** into **d661b8d2e70125db50f569131b2e05723fb84dc8 on MycroftAI:dev**.\n"}}
{"actor":{"display_login":"coveralls"}}