{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850","id":168467200,"number":1850,"title":"Added nickname templating and associated worker","user":{"login":"reddivision","id":8896778,"avatar_url":"https://avatars.githubusercontent.com/u/8896778?v=3","gravatar_id":"","url":"https://api.github.com/users/reddivision","html_url":"https://github.com/reddivision","followers_url":"https://api.github.com/users/reddivision/followers","following_url":"https://api.github.com/users/reddivision/following{/other_user}","gists_url":"https://api.github.com/users/reddivision/gists{/gist_id}","starred_url":"https://api.github.com/users/reddivision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddivision/subscriptions","organizations_url":"https://api.github.com/users/reddivision/orgs","repos_url":"https://api.github.com/users/reddivision/repos","events_url":"https://api.github.com/users/reddivision/events{/privacy}","received_events_url":"https://api.github.com/users/reddivision/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/second%20review%20required","name":"second review required","color":"d4c5f9"},{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/waiting%20on%20changes","name":"waiting on changes","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/milestones/1","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/milestones/2.0%20-%20stable%20release","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/milestones/1/labels","id":1912491,"number":1,"title":"2.0 - stable release","description":"","creator":{"login":"douglascamata","id":159076,"avatar_url":"https://avatars.githubusercontent.com/u/159076?v=3","gravatar_id":"","url":"https://api.github.com/users/douglascamata","html_url":"https://github.com/douglascamata","followers_url":"https://api.github.com/users/douglascamata/followers","following_url":"https://api.github.com/users/douglascamata/following{/other_user}","gists_url":"https://api.github.com/users/douglascamata/gists{/gist_id}","starred_url":"https://api.github.com/users/douglascamata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglascamata/subscriptions","organizations_url":"https://api.github.com/users/douglascamata/orgs","repos_url":"https://api.github.com/users/douglascamata/repos","events_url":"https://api.github.com/users/douglascamata/events{/privacy}","received_events_url":"https://api.github.com/users/douglascamata/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":4,"state":"open","created_at":"2016-07-29T19:18:33Z","updated_at":"2016-08-01T07:03:35Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-07-30T13:22:29Z","updated_at":"2016-08-01T08:56:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850.patch"},"body":"Short Description: \r\nUsers can now specify a template (using python Formatter syntax) to nickname pokemon in their inventory. The worker for this will process the user's entire inventory each tick, but will only update pokemon that require an update to match the new template (i.e. only caught/hatched pokemon after the first tick).\r\n\r\nUse a blank template (`\"\"`) to revert all pokemon to their original names.\r\n\r\nValid names in templates are:\r\n- `name` = pokemon name\r\n- `id` = pokemon type id (e.g. 1 for Bulbasaurs)\r\n- `cp` = pokemon's CP\r\n- `iv_attack` = pokemon's attack IV\r\n- `iv_defense` = pokemon's defense IV\r\n- `iv_stamina` = pokemon's stamina IV\r\n- `iv_ads` = pokemon's IVs in X/X/X format (matches web UI format -- A/D/S)\r\n- `iv_sum` = pokemon's IVs as a sum (e.g. 45 when 3 perfect 15 IVs)\r\n- `iv_pct` = pokemon's IVs as a percentage (0-100)\r\n\r\nExamples: \r\n- `{name}_{iv_pct}` => `Mankey_69`\r\n- `{iv_pct}_{iv_ads}` => `91_15/11/15`\r\n![sample](https://cloud.githubusercontent.com/assets/8896778/17285954/0fa44a88-577b-11e6-8204-b1302f4294bd.png)\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/236525634","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850#issuecomment-236525634","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850","id":236525634,"user":{"login":"douglascamata","id":159076,"avatar_url":"https://avatars.githubusercontent.com/u/159076?v=3","gravatar_id":"","url":"https://api.github.com/users/douglascamata","html_url":"https://github.com/douglascamata","followers_url":"https://api.github.com/users/douglascamata/followers","following_url":"https://api.github.com/users/douglascamata/following{/other_user}","gists_url":"https://api.github.com/users/douglascamata/gists{/gist_id}","starred_url":"https://api.github.com/users/douglascamata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglascamata/subscriptions","organizations_url":"https://api.github.com/users/douglascamata/orgs","repos_url":"https://api.github.com/users/douglascamata/repos","events_url":"https://api.github.com/users/douglascamata/events{/privacy}","received_events_url":"https://api.github.com/users/douglascamata/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T08:56:34Z","updated_at":"2016-08-01T08:56:34Z","body":"I'd like to reiterate my suggestion:\r\n\r\n> @reddivision if you have the NicknameAll behaviour in the beginning of the tick, you don't need to try to set nicknames on pokemons after capture or egg hatches (they will be renamed in the next tick). Also, to make the NicknameAll behaviour don't make a request for every single pokemon that was already renamed, you can check the current pokemon name and the new name it would have. If they match, you can skip the pokemon.\r\n\r\nYou can add one config to the worker to make it only rename pokemon on start up, to make it even less expensive, and one config to force rename all pokemon regardless of current name."}}
{"actor":{"display_login":"douglascamata"}}