{"action":"created","issue":{"url":"https://api.github.com/repos/hnarayanan/shpotify/issues/15","labels_url":"https://api.github.com/repos/hnarayanan/shpotify/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/hnarayanan/shpotify/issues/15/comments","events_url":"https://api.github.com/repos/hnarayanan/shpotify/issues/15/events","html_url":"https://github.com/hnarayanan/shpotify/pull/15","id":67155213,"number":15,"title":"Feat/startup check","user":{"login":"gbonetti","id":1524112,"avatar_url":"https://avatars.githubusercontent.com/u/1524112?v=3","gravatar_id":"","url":"https://api.github.com/users/gbonetti","html_url":"https://github.com/gbonetti","followers_url":"https://api.github.com/users/gbonetti/followers","following_url":"https://api.github.com/users/gbonetti/following{/other_user}","gists_url":"https://api.github.com/users/gbonetti/gists{/gist_id}","starred_url":"https://api.github.com/users/gbonetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbonetti/subscriptions","organizations_url":"https://api.github.com/users/gbonetti/orgs","repos_url":"https://api.github.com/users/gbonetti/repos","events_url":"https://api.github.com/users/gbonetti/events{/privacy}","received_events_url":"https://api.github.com/users/gbonetti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-08T15:26:03Z","updated_at":"2015-04-09T10:51:16Z","closed_at":"2015-04-09T10:43:18Z","pull_request":{"url":"https://api.github.com/repos/hnarayanan/shpotify/pulls/15","html_url":"https://github.com/hnarayanan/shpotify/pull/15","diff_url":"https://github.com/hnarayanan/shpotify/pull/15.diff","patch_url":"https://github.com/hnarayanan/shpotify/pull/15.patch"},"body":"Added check to run spotify if not running. I'm not super proud of the sleep statement but It's far the easiest way to get the right behaviour. \r\nBasically spotify doesn't accept any command until is fully loaded so it would't work without the sleep. A proper solution would be insert some check over the app state.\r\nAlso moved the fancy green-bold output creation to a function. Reset added to cleanup bash font settings after the output is completed. "},"comment":{"url":"https://api.github.com/repos/hnarayanan/shpotify/issues/comments/91192506","html_url":"https://github.com/hnarayanan/shpotify/pull/15#issuecomment-91192506","issue_url":"https://api.github.com/repos/hnarayanan/shpotify/issues/15","id":91192506,"user":{"login":"hnarayanan","id":661446,"avatar_url":"https://avatars.githubusercontent.com/u/661446?v=3","gravatar_id":"","url":"https://api.github.com/users/hnarayanan","html_url":"https://github.com/hnarayanan","followers_url":"https://api.github.com/users/hnarayanan/followers","following_url":"https://api.github.com/users/hnarayanan/following{/other_user}","gists_url":"https://api.github.com/users/hnarayanan/gists{/gist_id}","starred_url":"https://api.github.com/users/hnarayanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnarayanan/subscriptions","organizations_url":"https://api.github.com/users/hnarayanan/orgs","repos_url":"https://api.github.com/users/hnarayanan/repos","events_url":"https://api.github.com/users/hnarayanan/events{/privacy}","received_events_url":"https://api.github.com/users/hnarayanan/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T10:51:16Z","updated_at":"2015-04-09T10:51:16Z","body":"And I forgot to mention, you might want to submit another pull request with your name as one of the contributors, both in the README and the script header. :)"}}