{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72302920","id":72302920,"diff_hunk":"@@ -206,15 +211,20 @@ def main():\n         bot.start()\n \n         logger.log('[x] Starting PokemonGo Bot....', 'green')\n+        idle = True\n \n-        while True:\n+        while idle:\n             bot.take_step()\n \n+        return\n+\n     except KeyboardInterrupt:\n         logger.log('[x] Exiting PokemonGo Bot', 'red')\n         # TODO Add number of pokemon catched, pokestops visited, highest CP\n         # pokemon catched, etc.\n \n+signal.signal(signal.SIGUSR2, reread_config)\n \n if __name__ == '__main__':\n-    main()","path":"pokecli.py","position":48,"original_position":48,"commit_id":"e367a4e1ad03884e97bac24fcd95e1c1825fbf56","original_commit_id":"e367a4e1ad03884e97bac24fcd95e1c1825fbf56","user":{"login":"solderzzc","id":3085564,"avatar_url":"https://avatars.githubusercontent.com/u/3085564?v=3","gravatar_id":"","url":"https://api.github.com/users/solderzzc","html_url":"https://github.com/solderzzc","followers_url":"https://api.github.com/users/solderzzc/followers","following_url":"https://api.github.com/users/solderzzc/following{/other_user}","gists_url":"https://api.github.com/users/solderzzc/gists{/gist_id}","starred_url":"https://api.github.com/users/solderzzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solderzzc/subscriptions","organizations_url":"https://api.github.com/users/solderzzc/orgs","repos_url":"https://api.github.com/users/solderzzc/repos","events_url":"https://api.github.com/users/solderzzc/events{/privacy}","received_events_url":"https://api.github.com/users/solderzzc/received_events","type":"User","site_admin":false},"body":"why we need a where here?\r\nso are you working on a external signal control?","created_at":"2016-07-26T17:57:25Z","updated_at":"2016-07-26T17:57:25Z","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1014#discussion_r72302920","pull_request_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72302920"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1014#discussion_r72302920"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014","id":78883157,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1014","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1014.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1014.patch","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1014","number":1014,"state":"open","locked":false,"title":"Add USR2 signal to reread the config","user":{"login":"LIQRGV","id":5935057,"avatar_url":"https://avatars.githubusercontent.com/u/5935057?v=3","gravatar_id":"","url":"https://api.github.com/users/LIQRGV","html_url":"https://github.com/LIQRGV","followers_url":"https://api.github.com/users/LIQRGV/followers","following_url":"https://api.github.com/users/LIQRGV/following{/other_user}","gists_url":"https://api.github.com/users/LIQRGV/gists{/gist_id}","starred_url":"https://api.github.com/users/LIQRGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LIQRGV/subscriptions","organizations_url":"https://api.github.com/users/LIQRGV/orgs","repos_url":"https://api.github.com/users/LIQRGV/repos","events_url":"https://api.github.com/users/LIQRGV/events{/privacy}","received_events_url":"https://api.github.com/users/LIQRGV/received_events","type":"User","site_admin":false},"body":"Short Description: \r\nUsage: kill -USR2 <pokecli PID>\r\n\r\nNow we can send USR2 signal instead of restart the program","created_at":"2016-07-26T16:27:57Z","updated_at":"2016-07-26T17:57:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efa480f3cb8e172bb69aa27eebc513c12795f338","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014/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/1014/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/e367a4e1ad03884e97bac24fcd95e1c1825fbf56","head":{"label":"LIQRGV:add_signal","ref":"add_signal","sha":"e367a4e1ad03884e97bac24fcd95e1c1825fbf56","user":{"login":"LIQRGV","id":5935057,"avatar_url":"https://avatars.githubusercontent.com/u/5935057?v=3","gravatar_id":"","url":"https://api.github.com/users/LIQRGV","html_url":"https://github.com/LIQRGV","followers_url":"https://api.github.com/users/LIQRGV/followers","following_url":"https://api.github.com/users/LIQRGV/following{/other_user}","gists_url":"https://api.github.com/users/LIQRGV/gists{/gist_id}","starred_url":"https://api.github.com/users/LIQRGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LIQRGV/subscriptions","organizations_url":"https://api.github.com/users/LIQRGV/orgs","repos_url":"https://api.github.com/users/LIQRGV/repos","events_url":"https://api.github.com/users/LIQRGV/events{/privacy}","received_events_url":"https://api.github.com/users/LIQRGV/received_events","type":"User","site_admin":false},"repo":{"id":64236277,"name":"PokemonGo-Bot","full_name":"LIQRGV/PokemonGo-Bot","owner":{"login":"LIQRGV","id":5935057,"avatar_url":"https://avatars.githubusercontent.com/u/5935057?v=3","gravatar_id":"","url":"https://api.github.com/users/LIQRGV","html_url":"https://github.com/LIQRGV","followers_url":"https://api.github.com/users/LIQRGV/followers","following_url":"https://api.github.com/users/LIQRGV/following{/other_user}","gists_url":"https://api.github.com/users/LIQRGV/gists{/gist_id}","starred_url":"https://api.github.com/users/LIQRGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LIQRGV/subscriptions","organizations_url":"https://api.github.com/users/LIQRGV/orgs","repos_url":"https://api.github.com/users/LIQRGV/repos","events_url":"https://api.github.com/users/LIQRGV/events{/privacy}","received_events_url":"https://api.github.com/users/LIQRGV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LIQRGV/PokemonGo-Bot","description":"The Pokemon Go Bot script, baking with community.","fork":true,"url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot","forks_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/LIQRGV/PokemonGo-Bot/deployments","created_at":"2016-07-26T16:17:30Z","updated_at":"2016-07-26T16:17:32Z","pushed_at":"2016-07-26T16:25:57Z","git_url":"git://github.com/LIQRGV/PokemonGo-Bot.git","ssh_url":"git@github.com:LIQRGV/PokemonGo-Bot.git","clone_url":"https://github.com/LIQRGV/PokemonGo-Bot.git","svn_url":"https://github.com/LIQRGV/PokemonGo-Bot","homepage":"","size":5814,"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:master","ref":"master","sha":"3aca6d798f8a3e173dce0beb7b13c9505cc5b251","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 script, 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-26T17:48:18Z","pushed_at":"2016-07-26T17:55:36Z","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":7216,"stargazers_count":980,"watchers_count":980,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":450,"mirror_url":null,"open_issues_count":153,"forks":450,"open_issues":153,"watchers":980,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1014"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1014"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1014/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1014/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/1014/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/e367a4e1ad03884e97bac24fcd95e1c1825fbf56"}}}}
{"actor":{"display_login":"solderzzc"}}