{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72380919","id":72380919,"diff_hunk":"@@ -118,7 +118,13 @@ def work(self):\n                                     seconds_since_epoch)))\n             elif spin_result == 4:\n                 logger.log(\"Inventory is full, switching to catch mode...\", 'red')\n-                self.config.mode = 'poke'\n+                #self.config.mode = 'poke'\n+                self.api.get_player()\n+                response_dict_player = self.api.call()\n+                player = response_dict_player['responses']['GET_PLAYER']['player_data']\n+                items_count = self.bot.get_inventory_count('item')\n+                items_stock = self.bot.current_inventory()\n+                self.bot.check_inventory_space(items_count, player['max_item_storage'], items_stock.copy())","path":"pokemongo_bot/cell_workers/seen_fort_worker.py","position":null,"original_position":11,"commit_id":"aab6d0edfc087c883394b226f486074dd1f8dd06","original_commit_id":"e84383c1089336bf83a2a928e1204d308ef859c0","user":{"login":"Surceis","id":18303339,"avatar_url":"https://avatars.githubusercontent.com/u/18303339?v=3","gravatar_id":"","url":"https://api.github.com/users/Surceis","html_url":"https://github.com/Surceis","followers_url":"https://api.github.com/users/Surceis/followers","following_url":"https://api.github.com/users/Surceis/following{/other_user}","gists_url":"https://api.github.com/users/Surceis/gists{/gist_id}","starred_url":"https://api.github.com/users/Surceis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Surceis/subscriptions","organizations_url":"https://api.github.com/users/Surceis/orgs","repos_url":"https://api.github.com/users/Surceis/repos","events_url":"https://api.github.com/users/Surceis/events{/privacy}","received_events_url":"https://api.github.com/users/Surceis/received_events","type":"User","site_admin":false},"body":"i don't understand, if i put this to work_on_cell it will run every tick? but this is 3 more request to server.","created_at":"2016-07-27T05:00:33Z","updated_at":"2016-07-27T05:00:33Z","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1011#discussion_r72380919","pull_request_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72380919"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1011#discussion_r72380919"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011","id":78881787,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1011","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1011.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1011.patch","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1011","number":1011,"state":"open","locked":false,"title":"Items cleaner","user":{"login":"Surceis","id":18303339,"avatar_url":"https://avatars.githubusercontent.com/u/18303339?v=3","gravatar_id":"","url":"https://api.github.com/users/Surceis","html_url":"https://github.com/Surceis","followers_url":"https://api.github.com/users/Surceis/followers","following_url":"https://api.github.com/users/Surceis/following{/other_user}","gists_url":"https://api.github.com/users/Surceis/gists{/gist_id}","starred_url":"https://api.github.com/users/Surceis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Surceis/subscriptions","organizations_url":"https://api.github.com/users/Surceis/orgs","repos_url":"https://api.github.com/users/Surceis/repos","events_url":"https://api.github.com/users/Surceis/events{/privacy}","received_events_url":"https://api.github.com/users/Surceis/received_events","type":"User","site_admin":false},"body":"Short Description: \r\n\r\n- quick implementation of the items cleaner\r\n- more items info at start\r\n\r\n```bash\r\n[19:05:09] PokeStop on cooldown. Time left: 4.97 minutes\r\n[19:05:11] Found fort *************.**at distance 0.35km\r\n[19:05:11] Need to move closer to Pokestop\r\n[======================================= ] 99%\r\n[19:07:23] Arrived at Pokestop\r\n[19:07:26] Now at Pokestop: The Harlequin Building  - Spinning...\r\n[19:07:29] Inventory is full, switching to catch mode...\r\n[19:07:31] Start to drop items\r\n[19:07:32] -- Recycled 124 Poke Ball!\r\n[19:07:33] -- Recycled 38 Potion!\r\n[19:07:35] -- Recycled 43 Revive!\r\n[19:07:36] Complete!\r\n```\r\n\r\n```bash\r\n[19:13:19] Login to Pokemon Go successful.\r\n[19:13:21]\r\n[19:13:21] --- ***** ****---\r\n[19:13:23] Level: ** (Next Level: **XP) (Total: **XP)\r\n[19:13:23] Pokemon Captured: ***| Pokestops Visited: ***\r\n[19:13:24] Pokemon Bag: 19/250\r\n[19:13:25] Items: 222/350\r\n[19:13:25] Stardust: *******| Pokecoins: 0\r\n[19:13:25] PokeBalls: 45 | GreatBalls: 0 | UltraBalls: 0\r\n[19:13:25] RazzBerries: 35 | BlukBerries: 0 | NanabBerries: 0\r\n[19:13:25] LuckyEgg: 0 | Incubator: 0 | TroyDisk: 0\r\n[19:13:25] Potion: 25 | SuperPotion: 12 | HyperPotion: 0\r\n[19:13:25] Incense: 2 | IncenseSpicy: 0 | IncenseCool: 0\r\n[19:13:25] Revive: 25 | MaxRevive: 0\r\n[19:13:25]\r\n[19:13:25]\r\n[19:13:35] Starting PokemonGo Bot....\r\n```","created_at":"2016-07-26T16:19:15Z","updated_at":"2016-07-27T05:00:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9f1eb03ba6ffcf5d5f040dff354e5c08e23b992","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011/comments","review_comment_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1011/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/aab6d0edfc087c883394b226f486074dd1f8dd06","head":{"label":"Surceis:items_cleaner","ref":"items_cleaner","sha":"aab6d0edfc087c883394b226f486074dd1f8dd06","user":{"login":"Surceis","id":18303339,"avatar_url":"https://avatars.githubusercontent.com/u/18303339?v=3","gravatar_id":"","url":"https://api.github.com/users/Surceis","html_url":"https://github.com/Surceis","followers_url":"https://api.github.com/users/Surceis/followers","following_url":"https://api.github.com/users/Surceis/following{/other_user}","gists_url":"https://api.github.com/users/Surceis/gists{/gist_id}","starred_url":"https://api.github.com/users/Surceis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Surceis/subscriptions","organizations_url":"https://api.github.com/users/Surceis/orgs","repos_url":"https://api.github.com/users/Surceis/repos","events_url":"https://api.github.com/users/Surceis/events{/privacy}","received_events_url":"https://api.github.com/users/Surceis/received_events","type":"User","site_admin":false},"repo":{"id":64233316,"name":"PokemonGo-Bot","full_name":"Surceis/PokemonGo-Bot","owner":{"login":"Surceis","id":18303339,"avatar_url":"https://avatars.githubusercontent.com/u/18303339?v=3","gravatar_id":"","url":"https://api.github.com/users/Surceis","html_url":"https://github.com/Surceis","followers_url":"https://api.github.com/users/Surceis/followers","following_url":"https://api.github.com/users/Surceis/following{/other_user}","gists_url":"https://api.github.com/users/Surceis/gists{/gist_id}","starred_url":"https://api.github.com/users/Surceis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Surceis/subscriptions","organizations_url":"https://api.github.com/users/Surceis/orgs","repos_url":"https://api.github.com/users/Surceis/repos","events_url":"https://api.github.com/users/Surceis/events{/privacy}","received_events_url":"https://api.github.com/users/Surceis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Surceis/PokemonGo-Bot","description":"The Pokemon Go Bot script, baking with community.","fork":true,"url":"https://api.github.com/repos/Surceis/PokemonGo-Bot","forks_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/Surceis/PokemonGo-Bot/deployments","created_at":"2016-07-26T15:37:14Z","updated_at":"2016-07-26T15:37:15Z","pushed_at":"2016-07-27T04:55:02Z","git_url":"git://github.com/Surceis/PokemonGo-Bot.git","ssh_url":"git@github.com:Surceis/PokemonGo-Bot.git","clone_url":"https://github.com/Surceis/PokemonGo-Bot.git","svn_url":"https://github.com/Surceis/PokemonGo-Bot","homepage":"","size":5807,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PokemonGoF:dev","ref":"dev","sha":"2634cc3ac234541858c7b426d0e6d50387ae819f","user":{"login":"PokemonGoF","id":20551204,"avatar_url":"https://avatars.githubusercontent.com/u/20551204?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoF","html_url":"https://github.com/PokemonGoF","followers_url":"https://api.github.com/users/PokemonGoF/followers","following_url":"https://api.github.com/users/PokemonGoF/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoF/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoF/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoF/orgs","repos_url":"https://api.github.com/users/PokemonGoF/repos","events_url":"https://api.github.com/users/PokemonGoF/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoF/received_events","type":"Organization","site_admin":false},"repo":{"id":63752974,"name":"PokemonGo-Bot","full_name":"PokemonGoF/PokemonGo-Bot","owner":{"login":"PokemonGoF","id":20551204,"avatar_url":"https://avatars.githubusercontent.com/u/20551204?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoF","html_url":"https://github.com/PokemonGoF","followers_url":"https://api.github.com/users/PokemonGoF/followers","following_url":"https://api.github.com/users/PokemonGoF/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoF/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoF/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoF/orgs","repos_url":"https://api.github.com/users/PokemonGoF/repos","events_url":"https://api.github.com/users/PokemonGoF/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot","description":"The Pokemon Go Bot, baking with community.","fork":false,"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","forks_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/deployments","created_at":"2016-07-20T05:31:53Z","updated_at":"2016-07-27T04:47:34Z","pushed_at":"2016-07-27T04:58:26Z","git_url":"git://github.com/PokemonGoF/PokemonGo-Bot.git","ssh_url":"git@github.com:PokemonGoF/PokemonGo-Bot.git","clone_url":"https://github.com/PokemonGoF/PokemonGo-Bot.git","svn_url":"https://github.com/PokemonGoF/PokemonGo-Bot","homepage":"","size":7429,"stargazers_count":1080,"watchers_count":1080,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":498,"mirror_url":null,"open_issues_count":165,"forks":498,"open_issues":165,"watchers":1080,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1011"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1011"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1011/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011/comments"},"review_comment":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1011/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/aab6d0edfc087c883394b226f486074dd1f8dd06"}}}}
{"actor":{"display_login":"Surceis"}}