{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/susi_server/issues/264","repository_url":"https://api.github.com/repos/fossasia/susi_server","labels_url":"https://api.github.com/repos/fossasia/susi_server/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/susi_server/issues/264/comments","events_url":"https://api.github.com/repos/fossasia/susi_server/issues/264/events","html_url":"https://github.com/fossasia/susi_server/issues/264","id":234280601,"number":264,"title":"Image action type","user":{"login":"AliAyub007","id":25840461,"avatar_url":"https://avatars0.githubusercontent.com/u/25840461?v=3","gravatar_id":"","url":"https://api.github.com/users/AliAyub007","html_url":"https://github.com/AliAyub007","followers_url":"https://api.github.com/users/AliAyub007/followers","following_url":"https://api.github.com/users/AliAyub007/following{/other_user}","gists_url":"https://api.github.com/users/AliAyub007/gists{/gist_id}","starred_url":"https://api.github.com/users/AliAyub007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliAyub007/subscriptions","organizations_url":"https://api.github.com/users/AliAyub007/orgs","repos_url":"https://api.github.com/users/AliAyub007/repos","events_url":"https://api.github.com/users/AliAyub007/events{/privacy}","received_events_url":"https://api.github.com/users/AliAyub007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-07T17:11:51Z","updated_at":"2017-06-09T12:11:42Z","closed_at":null,"body":"**Actual Behaviour**\r\n\r\nCurrently there is no image action type to return images. In bots image response I am applying checks like if (isURL and contains .jpg) then return image type message.\r\n\r\n**Expected Behaviour**\r\n\r\nThere should be an image action type to return images.\r\n\r\n**Screenshots of the issue**\r\n\r\n![responseimage](https://user-images.githubusercontent.com/25840461/26891346-22923fea-4bce-11e7-9291-8e9ef4dbf3c7.PNG)\r\n\r\nHere in type it should be image instead of answer\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fossasia/susi_server/issues/comments/307372396","html_url":"https://github.com/fossasia/susi_server/issues/264#issuecomment-307372396","issue_url":"https://api.github.com/repos/fossasia/susi_server/issues/264","id":307372396,"user":{"login":"Orbiter","id":238730,"avatar_url":"https://avatars1.githubusercontent.com/u/238730?v=3","gravatar_id":"","url":"https://api.github.com/users/Orbiter","html_url":"https://github.com/Orbiter","followers_url":"https://api.github.com/users/Orbiter/followers","following_url":"https://api.github.com/users/Orbiter/following{/other_user}","gists_url":"https://api.github.com/users/Orbiter/gists{/gist_id}","starred_url":"https://api.github.com/users/Orbiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orbiter/subscriptions","organizations_url":"https://api.github.com/users/Orbiter/orgs","repos_url":"https://api.github.com/users/Orbiter/repos","events_url":"https://api.github.com/users/Orbiter/events{/privacy}","received_events_url":"https://api.github.com/users/Orbiter/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T12:11:42Z","updated_at":"2017-06-09T12:11:42Z","body":"I already planned that susi shall have two actions regarding pictures:\r\n- takeimage\r\n- showimage\r\n\r\nThat looks like it is not related to your expected behaviour, but I believe it should be part of the same concept. The takeimage/showimage concept considers that you may be able to ask susi to *take an image* and then show it afterwards. So taking an image generates an asset storage identification which may be a file name of the client device. showing the image would refer to the same image. But if we do enough abstraction, showing would be able to show also remote stored images.\r\n\r\nSo lets distinguish image asset storage using a protocol name, like local images are referred with an file url:\r\nfile:///home/images/123.jpg\r\nand remote images with just normal urls\r\n\r\nSo all concepts could be covered with just two attributes in the action:\r\n```\r\n{\r\n  \"type\": \"showimage\",\r\n  \"url\": <the url>\r\n}\r\n```\r\n\r\nWould that be sufficient? or am I missing something?\r\n\r\n"}}
{"actor":{"display_login":"Orbiter"}}