{"action":"created","comment":{"url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/comments/131530392","pull_request_review_id":54523453,"id":131530392,"diff_hunk":"@@ -370,6 +370,9 @@ commands.registerVote = {\n                     cause: 'chat_vote',\n                     message: (e.message !== undefined) ? e.message : JSON.stringify(e)\n                   }, e)\n+                } else if (e.statusCode === 422) {","path":"Commands/Commands/queue.js","position":4,"original_position":4,"commit_id":"3169fad81c798f0cd20ff06d869a19c809b1110b","original_commit_id":"3169fad81c798f0cd20ff06d869a19c809b1110b","user":{"login":"SirDoctors","id":7450443,"avatar_url":"https://avatars0.githubusercontent.com/u/7450443?v=4","gravatar_id":"","url":"https://api.github.com/users/SirDoctors","html_url":"https://github.com/SirDoctors","followers_url":"https://api.github.com/users/SirDoctors/followers","following_url":"https://api.github.com/users/SirDoctors/following{/other_user}","gists_url":"https://api.github.com/users/SirDoctors/gists{/gist_id}","starred_url":"https://api.github.com/users/SirDoctors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirDoctors/subscriptions","organizations_url":"https://api.github.com/users/SirDoctors/orgs","repos_url":"https://api.github.com/users/SirDoctors/repos","events_url":"https://api.github.com/users/SirDoctors/events{/privacy}","received_events_url":"https://api.github.com/users/SirDoctors/received_events","type":"User","site_admin":false},"body":"And I was saying you could have done that on my pr, anyhow, we do this sort of thing on a lot of our commands, I wonder if there is something we can put in rather then these if statements everywhere? Of course This for example would need its own thing as its a \"special\" case.","created_at":"2017-08-05T22:03:30Z","updated_at":"2017-08-05T22:03:30Z","html_url":"https://github.com/SteamingMutt/DiscordFeedback/pull/62#discussion_r131530392","pull_request_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/comments/131530392"},"html":{"href":"https://github.com/SteamingMutt/DiscordFeedback/pull/62#discussion_r131530392"},"pull_request":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62","id":133137420,"html_url":"https://github.com/SteamingMutt/DiscordFeedback/pull/62","diff_url":"https://github.com/SteamingMutt/DiscordFeedback/pull/62.diff","patch_url":"https://github.com/SteamingMutt/DiscordFeedback/pull/62.patch","issue_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/62","number":62,"state":"open","locked":false,"title":"WIP: Autorole!","user":{"login":"nullpixel","id":6704113,"avatar_url":"https://avatars2.githubusercontent.com/u/6704113?v=4","gravatar_id":"","url":"https://api.github.com/users/nullpixel","html_url":"https://github.com/nullpixel","followers_url":"https://api.github.com/users/nullpixel/followers","following_url":"https://api.github.com/users/nullpixel/following{/other_user}","gists_url":"https://api.github.com/users/nullpixel/gists{/gist_id}","starred_url":"https://api.github.com/users/nullpixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullpixel/subscriptions","organizations_url":"https://api.github.com/users/nullpixel/orgs","repos_url":"https://api.github.com/users/nullpixel/repos","events_url":"https://api.github.com/users/nullpixel/events{/privacy}","received_events_url":"https://api.github.com/users/nullpixel/received_events","type":"User","site_admin":false},"body":"**_DO NOT MERGE:_ waiting for total days to be added courtesy of Doug.**\r\n\r\ntested locally, works fine. fires every hour which can be tweaked. code is the best I could make it.\r\n\r\n# Todo:\r\n\r\n- [x] Auto de-role\r\n- [x] Fix issue where user is demoted every time the function is rerun (caused by how we check for active users)\r\n- [x] Log to #bot-log (coming soon:tm:)\r\n- [ ] Consecutive Days in database. (waiting for dougley on this)\r\n\r\n# in this PR:\r\n\r\n* auto role and derole\r\n* show next rank in `!stats`, thx teaman\r\n* Fail silently when chat voting fails because voting was closed. (#69)","created_at":"2017-07-30T18:06:58Z","updated_at":"2017-08-05T22:03:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"487128e48da8edd964d2fd89bb68ee8cbfddcdb4","assignee":{"login":"nullpixel","id":6704113,"avatar_url":"https://avatars2.githubusercontent.com/u/6704113?v=4","gravatar_id":"","url":"https://api.github.com/users/nullpixel","html_url":"https://github.com/nullpixel","followers_url":"https://api.github.com/users/nullpixel/followers","following_url":"https://api.github.com/users/nullpixel/following{/other_user}","gists_url":"https://api.github.com/users/nullpixel/gists{/gist_id}","starred_url":"https://api.github.com/users/nullpixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullpixel/subscriptions","organizations_url":"https://api.github.com/users/nullpixel/orgs","repos_url":"https://api.github.com/users/nullpixel/repos","events_url":"https://api.github.com/users/nullpixel/events{/privacy}","received_events_url":"https://api.github.com/users/nullpixel/received_events","type":"User","site_admin":false},"assignees":[{"login":"nullpixel","id":6704113,"avatar_url":"https://avatars2.githubusercontent.com/u/6704113?v=4","gravatar_id":"","url":"https://api.github.com/users/nullpixel","html_url":"https://github.com/nullpixel","followers_url":"https://api.github.com/users/nullpixel/followers","following_url":"https://api.github.com/users/nullpixel/following{/other_user}","gists_url":"https://api.github.com/users/nullpixel/gists{/gist_id}","starred_url":"https://api.github.com/users/nullpixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullpixel/subscriptions","organizations_url":"https://api.github.com/users/nullpixel/orgs","repos_url":"https://api.github.com/users/nullpixel/repos","events_url":"https://api.github.com/users/nullpixel/events{/privacy}","received_events_url":"https://api.github.com/users/nullpixel/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"SirDoctors","id":7450443,"avatar_url":"https://avatars0.githubusercontent.com/u/7450443?v=4","gravatar_id":"","url":"https://api.github.com/users/SirDoctors","html_url":"https://github.com/SirDoctors","followers_url":"https://api.github.com/users/SirDoctors/followers","following_url":"https://api.github.com/users/SirDoctors/following{/other_user}","gists_url":"https://api.github.com/users/SirDoctors/gists{/gist_id}","starred_url":"https://api.github.com/users/SirDoctors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirDoctors/subscriptions","organizations_url":"https://api.github.com/users/SirDoctors/orgs","repos_url":"https://api.github.com/users/SirDoctors/repos","events_url":"https://api.github.com/users/SirDoctors/events{/privacy}","received_events_url":"https://api.github.com/users/SirDoctors/received_events","type":"User","site_admin":false},{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars2.githubusercontent.com/u/9768134?v=4","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62/commits","review_comments_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62/comments","review_comment_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/62/comments","statuses_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/statuses/3169fad81c798f0cd20ff06d869a19c809b1110b","head":{"label":"SteamingMutt:feature/autorole","ref":"feature/autorole","sha":"3169fad81c798f0cd20ff06d869a19c809b1110b","user":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars2.githubusercontent.com/u/9768134?v=4","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"repo":{"id":76595008,"name":"DiscordFeedback","full_name":"SteamingMutt/DiscordFeedback","owner":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars2.githubusercontent.com/u/9768134?v=4","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SteamingMutt/DiscordFeedback","description":"The bot that powers the Discord Feedback server","fork":false,"url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback","forks_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/forks","keys_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/teams","hooks_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/hooks","issue_events_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/events{/number}","events_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/events","assignees_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/assignees{/user}","branches_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/branches{/branch}","tags_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/tags","blobs_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/refs{/sha}","trees_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/statuses/{sha}","languages_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/languages","stargazers_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/stargazers","contributors_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/contributors","subscribers_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/subscribers","subscription_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/subscription","commits_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/commits{/sha}","git_commits_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/commits{/sha}","comments_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/comments{/number}","issue_comment_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/comments{/number}","contents_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/contents/{+path}","compare_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/merges","archive_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/downloads","issues_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues{/number}","pulls_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls{/number}","milestones_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/milestones{/number}","notifications_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/labels{/name}","releases_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/releases{/id}","deployments_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/deployments","created_at":"2016-12-15T20:48:35Z","updated_at":"2017-08-05T01:56:53Z","pushed_at":"2017-08-05T21:40:53Z","git_url":"git://github.com/SteamingMutt/DiscordFeedback.git","ssh_url":"git@github.com:SteamingMutt/DiscordFeedback.git","clone_url":"https://github.com/SteamingMutt/DiscordFeedback.git","svn_url":"https://github.com/SteamingMutt/DiscordFeedback","homepage":null,"size":206,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":8,"default_branch":"master"}},"base":{"label":"SteamingMutt:master","ref":"master","sha":"42d0a0f3b30dc0e741986813ab0202f6ea50f7e8","user":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars2.githubusercontent.com/u/9768134?v=4","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"repo":{"id":76595008,"name":"DiscordFeedback","full_name":"SteamingMutt/DiscordFeedback","owner":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars2.githubusercontent.com/u/9768134?v=4","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SteamingMutt/DiscordFeedback","description":"The bot that powers the Discord Feedback server","fork":false,"url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback","forks_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/forks","keys_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/teams","hooks_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/hooks","issue_events_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/events{/number}","events_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/events","assignees_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/assignees{/user}","branches_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/branches{/branch}","tags_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/tags","blobs_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/refs{/sha}","trees_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/statuses/{sha}","languages_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/languages","stargazers_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/stargazers","contributors_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/contributors","subscribers_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/subscribers","subscription_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/subscription","commits_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/commits{/sha}","git_commits_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/git/commits{/sha}","comments_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/comments{/number}","issue_comment_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/comments{/number}","contents_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/contents/{+path}","compare_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/merges","archive_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/downloads","issues_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues{/number}","pulls_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls{/number}","milestones_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/milestones{/number}","notifications_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/labels{/name}","releases_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/releases{/id}","deployments_url":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/deployments","created_at":"2016-12-15T20:48:35Z","updated_at":"2017-08-05T01:56:53Z","pushed_at":"2017-08-05T21:40:53Z","git_url":"git://github.com/SteamingMutt/DiscordFeedback.git","ssh_url":"git@github.com:SteamingMutt/DiscordFeedback.git","clone_url":"https://github.com/SteamingMutt/DiscordFeedback.git","svn_url":"https://github.com/SteamingMutt/DiscordFeedback","homepage":null,"size":206,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62"},"html":{"href":"https://github.com/SteamingMutt/DiscordFeedback/pull/62"},"issue":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/62"},"comments":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/SteamingMutt/DiscordFeedback/statuses/3169fad81c798f0cd20ff06d869a19c809b1110b"}}}}
{"actor":{"display_login":"SirDoctors"}}