{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/11","id":173748608,"html_url":"https://github.com/rmgirardin/mouse-bot/pull/11","diff_url":"https://github.com/rmgirardin/mouse-bot/pull/11.diff","patch_url":"https://github.com/rmgirardin/mouse-bot/pull/11.patch","issue_url":"https://api.github.com/repos/rmgirardin/mouse-bot/issues/11","number":11,"state":"open","locked":false,"title":"nickname handling fix","user":{"login":"interi-mhickman","id":8228091,"avatar_url":"https://avatars0.githubusercontent.com/u/8228091?v=4","gravatar_id":"","url":"https://api.github.com/users/interi-mhickman","html_url":"https://github.com/interi-mhickman","followers_url":"https://api.github.com/users/interi-mhickman/followers","following_url":"https://api.github.com/users/interi-mhickman/following{/other_user}","gists_url":"https://api.github.com/users/interi-mhickman/gists{/gist_id}","starred_url":"https://api.github.com/users/interi-mhickman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interi-mhickman/subscriptions","organizations_url":"https://api.github.com/users/interi-mhickman/orgs","repos_url":"https://api.github.com/users/interi-mhickman/repos","events_url":"https://api.github.com/users/interi-mhickman/events{/privacy}","received_events_url":"https://api.github.com/users/interi-mhickman/received_events","type":"User","site_admin":false},"body":"When using a username (no nick), e.g. `@RookieGunner#3215` or a user ID, e.g. `<@273421645828325377>`, the args come in like this:\r\n```[ '<@273421645828325377>', 'rookiegunner' ]```\r\nBut if the user has a nickname, the userid has an `!` added before the number:\r\n```[ '<@!273421645828325377>', 'rookiegunner' ]```\r\n\r\nthis commit modifies the argument processing to handle this condition.","created_at":"2018-03-08T14:23:23Z","updated_at":"2018-03-08T14:23:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/11/commits","review_comments_url":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/11/comments","review_comment_url":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rmgirardin/mouse-bot/issues/11/comments","statuses_url":"https://api.github.com/repos/rmgirardin/mouse-bot/statuses/8fec86e2b603fc80286aed1d6de11d0d958fd7c4","head":{"label":"interi-mhickman:cmd/lookup","ref":"cmd/lookup","sha":"8fec86e2b603fc80286aed1d6de11d0d958fd7c4","user":{"login":"interi-mhickman","id":8228091,"avatar_url":"https://avatars0.githubusercontent.com/u/8228091?v=4","gravatar_id":"","url":"https://api.github.com/users/interi-mhickman","html_url":"https://github.com/interi-mhickman","followers_url":"https://api.github.com/users/interi-mhickman/followers","following_url":"https://api.github.com/users/interi-mhickman/following{/other_user}","gists_url":"https://api.github.com/users/interi-mhickman/gists{/gist_id}","starred_url":"https://api.github.com/users/interi-mhickman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interi-mhickman/subscriptions","organizations_url":"https://api.github.com/users/interi-mhickman/orgs","repos_url":"https://api.github.com/users/interi-mhickman/repos","events_url":"https://api.github.com/users/interi-mhickman/events{/privacy}","received_events_url":"https://api.github.com/users/interi-mhickman/received_events","type":"User","site_admin":false},"repo":{"id":121444555,"name":"mouse-bot","full_name":"interi-mhickman/mouse-bot","owner":{"login":"interi-mhickman","id":8228091,"avatar_url":"https://avatars0.githubusercontent.com/u/8228091?v=4","gravatar_id":"","url":"https://api.github.com/users/interi-mhickman","html_url":"https://github.com/interi-mhickman","followers_url":"https://api.github.com/users/interi-mhickman/followers","following_url":"https://api.github.com/users/interi-mhickman/following{/other_user}","gists_url":"https://api.github.com/users/interi-mhickman/gists{/gist_id}","starred_url":"https://api.github.com/users/interi-mhickman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interi-mhickman/subscriptions","organizations_url":"https://api.github.com/users/interi-mhickman/orgs","repos_url":"https://api.github.com/users/interi-mhickman/repos","events_url":"https://api.github.com/users/interi-mhickman/events{/privacy}","received_events_url":"https://api.github.com/users/interi-mhickman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/interi-mhickman/mouse-bot","description":"A Discord bot for Star Wars: Galaxy of Heroes","fork":true,"url":"https://api.github.com/repos/interi-mhickman/mouse-bot","forks_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/forks","keys_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/teams","hooks_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/hooks","issue_events_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/issues/events{/number}","events_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/events","assignees_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/assignees{/user}","branches_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/branches{/branch}","tags_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/tags","blobs_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/languages","stargazers_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/stargazers","contributors_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/contributors","subscribers_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/subscribers","subscription_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/subscription","commits_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/contents/{+path}","compare_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/merges","archive_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/downloads","issues_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/issues{/number}","pulls_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/labels{/name}","releases_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/releases{/id}","deployments_url":"https://api.github.com/repos/interi-mhickman/mouse-bot/deployments","created_at":"2018-02-13T22:32:35Z","updated_at":"2018-02-13T22:32:37Z","pushed_at":"2018-03-08T14:20:24Z","git_url":"git://github.com/interi-mhickman/mouse-bot.git","ssh_url":"git@github.com:interi-mhickman/mouse-bot.git","clone_url":"https://github.com/interi-mhickman/mouse-bot.git","svn_url":"https://github.com/interi-mhickman/mouse-bot","homepage":"","size":1335,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rmgirardin:master","ref":"master","sha":"1ce8722382fae5e0727c2a3f4afb0cef87d0097b","user":{"login":"rmgirardin","id":19332184,"avatar_url":"https://avatars0.githubusercontent.com/u/19332184?v=4","gravatar_id":"","url":"https://api.github.com/users/rmgirardin","html_url":"https://github.com/rmgirardin","followers_url":"https://api.github.com/users/rmgirardin/followers","following_url":"https://api.github.com/users/rmgirardin/following{/other_user}","gists_url":"https://api.github.com/users/rmgirardin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmgirardin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmgirardin/subscriptions","organizations_url":"https://api.github.com/users/rmgirardin/orgs","repos_url":"https://api.github.com/users/rmgirardin/repos","events_url":"https://api.github.com/users/rmgirardin/events{/privacy}","received_events_url":"https://api.github.com/users/rmgirardin/received_events","type":"User","site_admin":false},"repo":{"id":66323094,"name":"mouse-bot","full_name":"rmgirardin/mouse-bot","owner":{"login":"rmgirardin","id":19332184,"avatar_url":"https://avatars0.githubusercontent.com/u/19332184?v=4","gravatar_id":"","url":"https://api.github.com/users/rmgirardin","html_url":"https://github.com/rmgirardin","followers_url":"https://api.github.com/users/rmgirardin/followers","following_url":"https://api.github.com/users/rmgirardin/following{/other_user}","gists_url":"https://api.github.com/users/rmgirardin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmgirardin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmgirardin/subscriptions","organizations_url":"https://api.github.com/users/rmgirardin/orgs","repos_url":"https://api.github.com/users/rmgirardin/repos","events_url":"https://api.github.com/users/rmgirardin/events{/privacy}","received_events_url":"https://api.github.com/users/rmgirardin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmgirardin/mouse-bot","description":"A Discord bot for Star Wars: Galaxy of Heroes","fork":false,"url":"https://api.github.com/repos/rmgirardin/mouse-bot","forks_url":"https://api.github.com/repos/rmgirardin/mouse-bot/forks","keys_url":"https://api.github.com/repos/rmgirardin/mouse-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmgirardin/mouse-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmgirardin/mouse-bot/teams","hooks_url":"https://api.github.com/repos/rmgirardin/mouse-bot/hooks","issue_events_url":"https://api.github.com/repos/rmgirardin/mouse-bot/issues/events{/number}","events_url":"https://api.github.com/repos/rmgirardin/mouse-bot/events","assignees_url":"https://api.github.com/repos/rmgirardin/mouse-bot/assignees{/user}","branches_url":"https://api.github.com/repos/rmgirardin/mouse-bot/branches{/branch}","tags_url":"https://api.github.com/repos/rmgirardin/mouse-bot/tags","blobs_url":"https://api.github.com/repos/rmgirardin/mouse-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmgirardin/mouse-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmgirardin/mouse-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmgirardin/mouse-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmgirardin/mouse-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/rmgirardin/mouse-bot/languages","stargazers_url":"https://api.github.com/repos/rmgirardin/mouse-bot/stargazers","contributors_url":"https://api.github.com/repos/rmgirardin/mouse-bot/contributors","subscribers_url":"https://api.github.com/repos/rmgirardin/mouse-bot/subscribers","subscription_url":"https://api.github.com/repos/rmgirardin/mouse-bot/subscription","commits_url":"https://api.github.com/repos/rmgirardin/mouse-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmgirardin/mouse-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmgirardin/mouse-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmgirardin/mouse-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmgirardin/mouse-bot/contents/{+path}","compare_url":"https://api.github.com/repos/rmgirardin/mouse-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmgirardin/mouse-bot/merges","archive_url":"https://api.github.com/repos/rmgirardin/mouse-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmgirardin/mouse-bot/downloads","issues_url":"https://api.github.com/repos/rmgirardin/mouse-bot/issues{/number}","pulls_url":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/rmgirardin/mouse-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/rmgirardin/mouse-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmgirardin/mouse-bot/labels{/name}","releases_url":"https://api.github.com/repos/rmgirardin/mouse-bot/releases{/id}","deployments_url":"https://api.github.com/repos/rmgirardin/mouse-bot/deployments","created_at":"2016-08-23T01:54:45Z","updated_at":"2018-02-20T16:32:30Z","pushed_at":"2018-03-07T02:35:36Z","git_url":"git://github.com/rmgirardin/mouse-bot.git","ssh_url":"git@github.com:rmgirardin/mouse-bot.git","clone_url":"https://github.com/rmgirardin/mouse-bot.git","svn_url":"https://github.com/rmgirardin/mouse-bot","homepage":"","size":1402,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/11"},"html":{"href":"https://github.com/rmgirardin/mouse-bot/pull/11"},"issue":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/issues/11"},"comments":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/rmgirardin/mouse-bot/statuses/8fec86e2b603fc80286aed1d6de11d0d958fd7c4"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"interi-mhickman"}}