{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1272","repository_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1272/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1272/comments","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1272/events","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/1272","id":176264905,"number":1272,"title":"Enable pulling each pokemons IVs and Moves by starting their encounter.","user":{"login":"MangoScango","id":7623678,"avatar_url":"https://avatars.githubusercontent.com/u/7623678?v=3","gravatar_id":"","url":"https://api.github.com/users/MangoScango","html_url":"https://github.com/MangoScango","followers_url":"https://api.github.com/users/MangoScango/followers","following_url":"https://api.github.com/users/MangoScango/following{/other_user}","gists_url":"https://api.github.com/users/MangoScango/gists{/gist_id}","starred_url":"https://api.github.com/users/MangoScango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MangoScango/subscriptions","organizations_url":"https://api.github.com/users/MangoScango/orgs","repos_url":"https://api.github.com/users/MangoScango/repos","events_url":"https://api.github.com/users/MangoScango/events{/privacy}","received_events_url":"https://api.github.com/users/MangoScango/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/milestones/3","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/milestones/4.0.0","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/milestones/3/labels","id":1979345,"number":3,"title":"4.0.0","description":"","creator":{"login":"chuyskywalker","id":131800,"avatar_url":"https://avatars.githubusercontent.com/u/131800?v=3","gravatar_id":"","url":"https://api.github.com/users/chuyskywalker","html_url":"https://github.com/chuyskywalker","followers_url":"https://api.github.com/users/chuyskywalker/followers","following_url":"https://api.github.com/users/chuyskywalker/following{/other_user}","gists_url":"https://api.github.com/users/chuyskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/chuyskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuyskywalker/subscriptions","organizations_url":"https://api.github.com/users/chuyskywalker/orgs","repos_url":"https://api.github.com/users/chuyskywalker/repos","events_url":"https://api.github.com/users/chuyskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/chuyskywalker/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":12,"state":"open","created_at":"2016-09-02T05:39:26Z","updated_at":"2016-09-12T01:24:07Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2016-09-11T21:00:57Z","updated_at":"2016-09-12T04:27:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/1272","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/1272","diff_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/1272.diff","patch_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/1272.patch"},"body":"## Description ##\r\n\r\nAdds 4 options:\r\n--encounter (-enc) will enable the map to start encounters to gather IVs and movesets for each pokemon\r\n--encounter-delay (-ed) sets the delay in seconds between finding a pokemon and encountering it defaults to 1, must be bigger than 0 to avoid rate limiting.\r\n--encounter-whitelist (-ewht) is a whitelist of pokemon to encounter.\r\n--encounter-blacklist (-eblk) is a blacklist of pokemon to not encounter.\r\n\r\nBe very careful with this. Each pokemon you encounter will send an entirely new request, potentially doubling the amount of requests your server makes. Don't spam Niantic about every Pidgey in your city, please. Use one of these lists to filter out unwanted pokemon.\r\n\r\nThe database gets bumped to 8, and gains 'individual_attack', 'individual_defense', 'individual_stamina', 'move_1', and 'move_2' in the pokemon table. Where the IVs are just the ints you'd expect, and the moves are numbers we look up in the JSON file provided. All of these stats are passed on to the webhook,\r\n\r\nThe map shows percent of perfection each pokemon has, as well as its IVs and moves. It also features notifications for exceptional pokemon, using #1187 's implementation.\r\n\r\nIt's based heavily on #332. I mostly just fixed the merge issues and squashed some bugs.\r\n\r\nA somewhat major change I made is now before each pokemon is parsed, I query the database to see if any active spawns with that encounter_id are already in there, and if so I skip them entirely. This is to avoid having to re encounter any pokemon that get scanned multiple times, otherwise the new stats would be wiped once the pokemon was reinserted. I then bump a new 'skipped' variable, and add that count when we log how many pokemon we found to avoid people seeing false '0' results.\r\n\r\nOh, and the gitignore was updated so I could add moves.json\r\n\r\n## Motivation and Context\r\nLots of people are clamoring for this. Hopefully we can get it in before SafteyNet ruins the party.\r\n\r\n## How Has This Been Tested?\r\nTested on my own machine, running a spawnpoint scan of about 1800 spawnpoints into a MySQL database. There have been various other people testing this as well, in the other PR threads. #1187 #1239 . \r\n\r\n## Screenshots (if appropriate):\r\n![2016-09-11 16_51_32-pokemon go map](https://cloud.githubusercontent.com/assets/7623678/18420423/526b610e-7840-11e6-836f-71c19b189e24.png)\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments/246241338","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/1272#issuecomment-246241338","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1272","id":246241338,"user":{"login":"xioxxio","id":20773834,"avatar_url":"https://avatars.githubusercontent.com/u/20773834?v=3","gravatar_id":"","url":"https://api.github.com/users/xioxxio","html_url":"https://github.com/xioxxio","followers_url":"https://api.github.com/users/xioxxio/followers","following_url":"https://api.github.com/users/xioxxio/following{/other_user}","gists_url":"https://api.github.com/users/xioxxio/gists{/gist_id}","starred_url":"https://api.github.com/users/xioxxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xioxxio/subscriptions","organizations_url":"https://api.github.com/users/xioxxio/orgs","repos_url":"https://api.github.com/users/xioxxio/repos","events_url":"https://api.github.com/users/xioxxio/events{/privacy}","received_events_url":"https://api.github.com/users/xioxxio/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T04:27:23Z","updated_at":"2016-09-12T04:27:23Z","body":"@azd2  I am using your telegram code.  I have one issue. I am receiving the alert on telegram BEFORE the bot has obtained the IV info.  When I examine the information on the map the IV info has been obtained only after a little while.  \r\n\r\nTelegram is sending out the notification before the bot has checked for IV's and moves.  How did you sort that out?\r\n\r\nThanks"}}
{"actor":{"display_login":"xioxxio"}}