{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhutchens/megahal/issues/2","labels_url":"https://api.github.com/repos/jasonhutchens/megahal/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jasonhutchens/megahal/issues/2/comments","events_url":"https://api.github.com/repos/jasonhutchens/megahal/issues/2/events","html_url":"https://github.com/jasonhutchens/megahal/issues/2","id":109464951,"number":2,"title":"passing command-line arguments without interactive console","user":{"login":"Wubix42","id":6044102,"avatar_url":"https://avatars.githubusercontent.com/u/6044102?v=3","gravatar_id":"","url":"https://api.github.com/users/Wubix42","html_url":"https://github.com/Wubix42","followers_url":"https://api.github.com/users/Wubix42/followers","following_url":"https://api.github.com/users/Wubix42/following{/other_user}","gists_url":"https://api.github.com/users/Wubix42/gists{/gist_id}","starred_url":"https://api.github.com/users/Wubix42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wubix42/subscriptions","organizations_url":"https://api.github.com/users/Wubix42/orgs","repos_url":"https://api.github.com/users/Wubix42/repos","events_url":"https://api.github.com/users/Wubix42/events{/privacy}","received_events_url":"https://api.github.com/users/Wubix42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T10:07:35Z","updated_at":"2015-10-03T02:53:41Z","closed_at":null,"body":"Hello,\r\nwould it be possible to use MegaHAL via the command line without the interactive console so it could be wrapped in scripts?\r\nMuch thanks in advance."},"comment":{"url":"https://api.github.com/repos/jasonhutchens/megahal/issues/comments/145195268","html_url":"https://github.com/jasonhutchens/megahal/issues/2#issuecomment-145195268","issue_url":"https://api.github.com/repos/jasonhutchens/megahal/issues/2","id":145195268,"user":{"login":"jasonhutchens","id":38485,"avatar_url":"https://avatars.githubusercontent.com/u/38485?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonhutchens","html_url":"https://github.com/jasonhutchens","followers_url":"https://api.github.com/users/jasonhutchens/followers","following_url":"https://api.github.com/users/jasonhutchens/following{/other_user}","gists_url":"https://api.github.com/users/jasonhutchens/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonhutchens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonhutchens/subscriptions","organizations_url":"https://api.github.com/users/jasonhutchens/orgs","repos_url":"https://api.github.com/users/jasonhutchens/repos","events_url":"https://api.github.com/users/jasonhutchens/events{/privacy}","received_events_url":"https://api.github.com/users/jasonhutchens/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T02:53:41Z","updated_at":"2015-10-03T02:53:41Z","body":"@Wubix42: you can do that already; have a look at what the command-line does: https://github.com/jasonhutchens/megahal/blob/master/bin/megahal\r\n\r\nhere's a simple script:\r\n\r\n```\r\n#!/usr/bin/env bash\r\n\r\nrequire 'megahal'\r\n\r\nmegahal = MegaHAL.new\r\nmegahal.become(:sherlock)\r\nanswer = megahal.reply(\"Hello Sherlock\")\r\nputs answer\r\n```\r\n\r\nHere's the API documentation: http://www.rubydoc.info/gems/megahal/MegaHAL#initialize-instance_method"}}