{"action":"opened","number":2286,"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2286","id":79657923,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2286","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2286.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2286.patch","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2286","number":2286,"state":"open","locked":false,"title":"Allow to change frequency of the different catch throw types","user":{"login":"Likael","id":6143550,"avatar_url":"https://avatars.githubusercontent.com/u/6143550?v=3","gravatar_id":"","url":"https://api.github.com/users/Likael","html_url":"https://github.com/Likael","followers_url":"https://api.github.com/users/Likael/followers","following_url":"https://api.github.com/users/Likael/following{/other_user}","gists_url":"https://api.github.com/users/Likael/gists{/gist_id}","starred_url":"https://api.github.com/users/Likael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Likael/subscriptions","organizations_url":"https://api.github.com/users/Likael/orgs","repos_url":"https://api.github.com/users/Likael/repos","events_url":"https://api.github.com/users/Likael/events{/privacy}","received_events_url":"https://api.github.com/users/Likael/received_events","type":"User","site_admin":false},"body":"**Short Description:** \r\n**_WARNING :_**.\r\nMy tests with the code were OK. However, I tried to test further the possibilities of the field  normalized_hit_position, and, coincidence or not, couldn't log again with my account any more for 1 hour immediatly after sending a weird value. \r\nThe code below should work safely as it doesn't contain the further tests, however my paranoid nature would ask for people to test with account they don't care about for 1 day before merging it. I will do so myself tomorrow too. Since the (unban?) I have been testing the code below, and got no further problem.\r\n\r\n**More information :** \r\nThe value of 0 for normalized_hit_position as a normal hit would be safe, as it was what we were sending before I correct the API call. \r\nThe value of 1.0 seems also to be safe, as we used it forever.\r\nI couldn't test value between 0 et 1.\r\nValue above 1 seems to be what could have caused the potential ban.\r\nnormalized_hit_position is not directly accessible by the config, and will be set to either 0 or 1, so the code below should be safe.\r\n\r\nFixes:\r\n- #2250\r\n\r\n\r\n","created_at":"2016-08-02T00:14:19Z","updated_at":"2016-08-02T00:14:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2286/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2286/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/2286/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/c900d347dc0e1a0a79f1eece7fa42bed0944b3f5","head":{"label":"Likael:dev","ref":"dev","sha":"c900d347dc0e1a0a79f1eece7fa42bed0944b3f5","user":{"login":"Likael","id":6143550,"avatar_url":"https://avatars.githubusercontent.com/u/6143550?v=3","gravatar_id":"","url":"https://api.github.com/users/Likael","html_url":"https://github.com/Likael","followers_url":"https://api.github.com/users/Likael/followers","following_url":"https://api.github.com/users/Likael/following{/other_user}","gists_url":"https://api.github.com/users/Likael/gists{/gist_id}","starred_url":"https://api.github.com/users/Likael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Likael/subscriptions","organizations_url":"https://api.github.com/users/Likael/orgs","repos_url":"https://api.github.com/users/Likael/repos","events_url":"https://api.github.com/users/Likael/events{/privacy}","received_events_url":"https://api.github.com/users/Likael/received_events","type":"User","site_admin":false},"repo":{"id":64611321,"name":"PokemonGo-Bot","full_name":"Likael/PokemonGo-Bot","owner":{"login":"Likael","id":6143550,"avatar_url":"https://avatars.githubusercontent.com/u/6143550?v=3","gravatar_id":"","url":"https://api.github.com/users/Likael","html_url":"https://github.com/Likael","followers_url":"https://api.github.com/users/Likael/followers","following_url":"https://api.github.com/users/Likael/following{/other_user}","gists_url":"https://api.github.com/users/Likael/gists{/gist_id}","starred_url":"https://api.github.com/users/Likael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Likael/subscriptions","organizations_url":"https://api.github.com/users/Likael/orgs","repos_url":"https://api.github.com/users/Likael/repos","events_url":"https://api.github.com/users/Likael/events{/privacy}","received_events_url":"https://api.github.com/users/Likael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Likael/PokemonGo-Bot","description":"The Pokemon Go Bot, baking with community.","fork":true,"url":"https://api.github.com/repos/Likael/PokemonGo-Bot","forks_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/Likael/PokemonGo-Bot/deployments","created_at":"2016-07-31T19:27:46Z","updated_at":"2016-07-31T19:27:49Z","pushed_at":"2016-08-01T23:51:06Z","git_url":"git://github.com/Likael/PokemonGo-Bot.git","ssh_url":"git@github.com:Likael/PokemonGo-Bot.git","clone_url":"https://github.com/Likael/PokemonGo-Bot.git","svn_url":"https://github.com/Likael/PokemonGo-Bot","homepage":"","size":6275,"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":"e58bf3d57c1c74d7847fdfa55b08410f48917bd0","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-08-01T23:49:58Z","pushed_at":"2016-08-02T00:08:54Z","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":8690,"stargazers_count":1969,"watchers_count":1969,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":847,"mirror_url":null,"open_issues_count":426,"forks":847,"open_issues":426,"watchers":1969,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2286"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2286"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2286"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2286/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2286/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/2286/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/c900d347dc0e1a0a79f1eece7fa42bed0944b3f5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":71,"deletions":33,"changed_files":3}}
{"actor":{"display_login":"Likael"}}