{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72888853","id":72888853,"diff_hunk":"@@ -35,6 +35,8 @@\n     \"use_lucky_egg\": false,\n     \"hatch_eggs\": true,\n     \"longer_eggs_first\": true,\n+    \"nickname_template\": \"{name}_{iv_pct}\",\n+    \"nickname_on_startup\": false,","path":"configs/config.json.example","position":5,"original_position":5,"commit_id":"90466ba1f357e5e4327f06bc9994c869f42f0d8f","original_commit_id":"90466ba1f357e5e4327f06bc9994c869f42f0d8f","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":"\"nickname_on_startup\" was not mentioned in pokecli.py.","created_at":"2016-07-30T14:56:08Z","updated_at":"2016-07-30T14:56:08Z","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850#discussion_r72888853","pull_request_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72888853"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850#discussion_r72888853"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850","id":79457305,"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","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850","number":1850,"state":"open","locked":false,"title":"Added nickname templating, worker for naming on startup","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},"body":"Short Description: \r\nUsers can now specify a template (using python Formatter syntax) to populate any newly caught/hatched pokemon. Also a worker in case users want to rename their entire inventory on startup (most likely a one-time thing, but user can decide).\r\n\r\nWhen catching a pokemon, the nickname subroutine will wait until after evolution and try to nickname using the evolution's name/id.\r\n\r\n(Note: when using `nickname_on_startup`, it can take several minutes depending on inventory size)\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 decimal percentage (the same as used throughout the bot)\r\n\r\ne.g. `{name}_{iv_pct}` => `Mankey_0.69`\r\n![sample](https://cloud.githubusercontent.com/assets/8896778/17270672/7d76b442-561d-11e6-80d9-05c5e05cbc1f.png)\r\n\r\n","created_at":"2016-07-30T13:22:29Z","updated_at":"2016-07-30T14:56:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4082f6e9c5f135a28642cd7eabf340e99ab4dc55","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850/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/1850/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/90466ba1f357e5e4327f06bc9994c869f42f0d8f","head":{"label":"reddivision:nickname_templates","ref":"nickname_templates","sha":"90466ba1f357e5e4327f06bc9994c869f42f0d8f","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},"repo":{"id":64041744,"name":"PokemonGo-Bot","full_name":"reddivision/PokemonGo-Bot","owner":{"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},"private":false,"html_url":"https://github.com/reddivision/PokemonGo-Bot","description":"The Pokemon Go Bot script, baking with community.","fork":true,"url":"https://api.github.com/repos/reddivision/PokemonGo-Bot","forks_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/reddivision/PokemonGo-Bot/deployments","created_at":"2016-07-24T00:32:35Z","updated_at":"2016-07-28T08:49:35Z","pushed_at":"2016-07-30T13:22:45Z","git_url":"git://github.com/reddivision/PokemonGo-Bot.git","ssh_url":"git@github.com:reddivision/PokemonGo-Bot.git","clone_url":"https://github.com/reddivision/PokemonGo-Bot.git","svn_url":"https://github.com/reddivision/PokemonGo-Bot","homepage":"","size":6107,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"dev"}},"base":{"label":"PokemonGoF:dev","ref":"dev","sha":"2f277fd7d08ff9a7ad45cf46e102a00db7ba9fdf","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-30T14:45:02Z","pushed_at":"2016-07-30T14:40:09Z","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":8152,"stargazers_count":1688,"watchers_count":1688,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":725,"mirror_url":null,"open_issues_count":277,"forks":725,"open_issues":277,"watchers":1688,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1850"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1850/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1850/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/1850/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/90466ba1f357e5e4327f06bc9994c869f42f0d8f"}}}}
{"actor":{"display_login":"solderzzc"}}