{"action":"created","issue":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/964","labels_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/964/labels{/name}","comments_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/964/comments","events_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/964/events","html_url":"https://github.com/MightyPirates/OpenComputers/issues/964","id":62973277,"number":964,"title":"Suggestion: robot.chestCount()","user":{"login":"GoneNomad","id":5944516,"avatar_url":"https://avatars.githubusercontent.com/u/5944516?v=3","gravatar_id":"","url":"https://api.github.com/users/GoneNomad","html_url":"https://github.com/GoneNomad","followers_url":"https://api.github.com/users/GoneNomad/followers","following_url":"https://api.github.com/users/GoneNomad/following{/other_user}","gists_url":"https://api.github.com/users/GoneNomad/gists{/gist_id}","starred_url":"https://api.github.com/users/GoneNomad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoneNomad/subscriptions","organizations_url":"https://api.github.com/users/GoneNomad/orgs","repos_url":"https://api.github.com/users/GoneNomad/repos","events_url":"https://api.github.com/users/GoneNomad/events{/privacy}","received_events_url":"https://api.github.com/users/GoneNomad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T12:37:36Z","updated_at":"2015-03-19T13:02:23Z","closed_at":"2015-03-19T13:02:23Z","body":"Have a situation where I want the program to confirm 2 or more Inventory Upgrades are installed. \r\n\r\nrobot.chestCount(): number\r\nReturns the number (0-4) of usable InventoryUpgrades currently available.\r\n"},"comment":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/comments/83550158","html_url":"https://github.com/MightyPirates/OpenComputers/issues/964#issuecomment-83550158","issue_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/964","id":83550158,"user":{"login":"fnuecke","id":514903,"avatar_url":"https://avatars.githubusercontent.com/u/514903?v=3","gravatar_id":"","url":"https://api.github.com/users/fnuecke","html_url":"https://github.com/fnuecke","followers_url":"https://api.github.com/users/fnuecke/followers","following_url":"https://api.github.com/users/fnuecke/following{/other_user}","gists_url":"https://api.github.com/users/fnuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/fnuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnuecke/subscriptions","organizations_url":"https://api.github.com/users/fnuecke/orgs","repos_url":"https://api.github.com/users/fnuecke/repos","events_url":"https://api.github.com/users/fnuecke/events{/privacy}","received_events_url":"https://api.github.com/users/fnuecke/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T13:02:23Z","updated_at":"2015-03-19T13:02:23Z","body":"Use `robot.inventorySize()`.\r\n\r\nIf you need the actual number of inventory upgrades, since AFAIK there are none except the OC built-in ones you could do `function chestCount() return robot.inventorySize() / 16 end`."}}