{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/mixer/discord-sync/pulls/12","id":171794529,"html_url":"https://github.com/mixer/discord-sync/pull/12","diff_url":"https://github.com/mixer/discord-sync/pull/12.diff","patch_url":"https://github.com/mixer/discord-sync/pull/12.patch","issue_url":"https://api.github.com/repos/mixer/discord-sync/issues/12","number":12,"state":"open","locked":false,"title":"feat: switch to discord.js, reduce sharding reconnects, add prometheus","user":{"login":"EthanWaite","id":982859,"avatar_url":"https://avatars1.githubusercontent.com/u/982859?v=4","gravatar_id":"","url":"https://api.github.com/users/EthanWaite","html_url":"https://github.com/EthanWaite","followers_url":"https://api.github.com/users/EthanWaite/followers","following_url":"https://api.github.com/users/EthanWaite/following{/other_user}","gists_url":"https://api.github.com/users/EthanWaite/gists{/gist_id}","starred_url":"https://api.github.com/users/EthanWaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EthanWaite/subscriptions","organizations_url":"https://api.github.com/users/EthanWaite/orgs","repos_url":"https://api.github.com/users/EthanWaite/repos","events_url":"https://api.github.com/users/EthanWaite/events{/privacy}","received_events_url":"https://api.github.com/users/EthanWaite/received_events","type":"User","site_admin":false},"body":"* Switched from Discordie to Discord.js. It has typings, is maintained, and meant some unnecessary code can be 🔥'd.\r\n  * The code to send a message to Discord has been left as a simple HTTP request. We're currently evaluating how Discord's rate limit will impact chat relay, so I don't want 429s to be retried. I'll use Discord.js's method once we have a plan there.\r\n  * Removed the word replacer (for `@everyone`/`@here`) and the bulk deletion code as Discord.js handles that for us.\r\n* If a shard drops, give the shard a few seconds to reconnect before killing all our connections to form a new cluster. This should reduce the number of disconnections if one server briefly loses its etcd lease.\r\n* Added Prometheus support with a few metrics on connections, authentication failures, and chat relay.\r\n* Added configuration options to toggle chat relay on or off.","created_at":"2018-02-27T21:49:07Z","updated_at":"2018-02-27T21:49:07Z","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/mixer/discord-sync/pulls/12/commits","review_comments_url":"https://api.github.com/repos/mixer/discord-sync/pulls/12/comments","review_comment_url":"https://api.github.com/repos/mixer/discord-sync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixer/discord-sync/issues/12/comments","statuses_url":"https://api.github.com/repos/mixer/discord-sync/statuses/724a79f27c0a2b9d1700fd6328e2101d49ecd9a9","head":{"label":"mixer:refactor/discord-js","ref":"refactor/discord-js","sha":"724a79f27c0a2b9d1700fd6328e2101d49ecd9a9","user":{"login":"mixer","id":11798804,"avatar_url":"https://avatars3.githubusercontent.com/u/11798804?v=4","gravatar_id":"","url":"https://api.github.com/users/mixer","html_url":"https://github.com/mixer","followers_url":"https://api.github.com/users/mixer/followers","following_url":"https://api.github.com/users/mixer/following{/other_user}","gists_url":"https://api.github.com/users/mixer/gists{/gist_id}","starred_url":"https://api.github.com/users/mixer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixer/subscriptions","organizations_url":"https://api.github.com/users/mixer/orgs","repos_url":"https://api.github.com/users/mixer/repos","events_url":"https://api.github.com/users/mixer/events{/privacy}","received_events_url":"https://api.github.com/users/mixer/received_events","type":"Organization","site_admin":false},"repo":{"id":61585017,"name":"discord-sync","full_name":"mixer/discord-sync","owner":{"login":"mixer","id":11798804,"avatar_url":"https://avatars3.githubusercontent.com/u/11798804?v=4","gravatar_id":"","url":"https://api.github.com/users/mixer","html_url":"https://github.com/mixer","followers_url":"https://api.github.com/users/mixer/followers","following_url":"https://api.github.com/users/mixer/following{/other_user}","gists_url":"https://api.github.com/users/mixer/gists{/gist_id}","starred_url":"https://api.github.com/users/mixer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixer/subscriptions","organizations_url":"https://api.github.com/users/mixer/orgs","repos_url":"https://api.github.com/users/mixer/repos","events_url":"https://api.github.com/users/mixer/events{/privacy}","received_events_url":"https://api.github.com/users/mixer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixer/discord-sync","description":null,"fork":false,"url":"https://api.github.com/repos/mixer/discord-sync","forks_url":"https://api.github.com/repos/mixer/discord-sync/forks","keys_url":"https://api.github.com/repos/mixer/discord-sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixer/discord-sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixer/discord-sync/teams","hooks_url":"https://api.github.com/repos/mixer/discord-sync/hooks","issue_events_url":"https://api.github.com/repos/mixer/discord-sync/issues/events{/number}","events_url":"https://api.github.com/repos/mixer/discord-sync/events","assignees_url":"https://api.github.com/repos/mixer/discord-sync/assignees{/user}","branches_url":"https://api.github.com/repos/mixer/discord-sync/branches{/branch}","tags_url":"https://api.github.com/repos/mixer/discord-sync/tags","blobs_url":"https://api.github.com/repos/mixer/discord-sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixer/discord-sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixer/discord-sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixer/discord-sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixer/discord-sync/statuses/{sha}","languages_url":"https://api.github.com/repos/mixer/discord-sync/languages","stargazers_url":"https://api.github.com/repos/mixer/discord-sync/stargazers","contributors_url":"https://api.github.com/repos/mixer/discord-sync/contributors","subscribers_url":"https://api.github.com/repos/mixer/discord-sync/subscribers","subscription_url":"https://api.github.com/repos/mixer/discord-sync/subscription","commits_url":"https://api.github.com/repos/mixer/discord-sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixer/discord-sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixer/discord-sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixer/discord-sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixer/discord-sync/contents/{+path}","compare_url":"https://api.github.com/repos/mixer/discord-sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixer/discord-sync/merges","archive_url":"https://api.github.com/repos/mixer/discord-sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixer/discord-sync/downloads","issues_url":"https://api.github.com/repos/mixer/discord-sync/issues{/number}","pulls_url":"https://api.github.com/repos/mixer/discord-sync/pulls{/number}","milestones_url":"https://api.github.com/repos/mixer/discord-sync/milestones{/number}","notifications_url":"https://api.github.com/repos/mixer/discord-sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixer/discord-sync/labels{/name}","releases_url":"https://api.github.com/repos/mixer/discord-sync/releases{/id}","deployments_url":"https://api.github.com/repos/mixer/discord-sync/deployments","created_at":"2016-06-20T22:34:38Z","updated_at":"2018-01-15T23:56:38Z","pushed_at":"2018-02-27T21:48:41Z","git_url":"git://github.com/mixer/discord-sync.git","ssh_url":"git@github.com:mixer/discord-sync.git","clone_url":"https://github.com/mixer/discord-sync.git","svn_url":"https://github.com/mixer/discord-sync","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"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":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mixer:master","ref":"master","sha":"de7430f9452ea9005fe7053a7c86e5ce19517531","user":{"login":"mixer","id":11798804,"avatar_url":"https://avatars3.githubusercontent.com/u/11798804?v=4","gravatar_id":"","url":"https://api.github.com/users/mixer","html_url":"https://github.com/mixer","followers_url":"https://api.github.com/users/mixer/followers","following_url":"https://api.github.com/users/mixer/following{/other_user}","gists_url":"https://api.github.com/users/mixer/gists{/gist_id}","starred_url":"https://api.github.com/users/mixer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixer/subscriptions","organizations_url":"https://api.github.com/users/mixer/orgs","repos_url":"https://api.github.com/users/mixer/repos","events_url":"https://api.github.com/users/mixer/events{/privacy}","received_events_url":"https://api.github.com/users/mixer/received_events","type":"Organization","site_admin":false},"repo":{"id":61585017,"name":"discord-sync","full_name":"mixer/discord-sync","owner":{"login":"mixer","id":11798804,"avatar_url":"https://avatars3.githubusercontent.com/u/11798804?v=4","gravatar_id":"","url":"https://api.github.com/users/mixer","html_url":"https://github.com/mixer","followers_url":"https://api.github.com/users/mixer/followers","following_url":"https://api.github.com/users/mixer/following{/other_user}","gists_url":"https://api.github.com/users/mixer/gists{/gist_id}","starred_url":"https://api.github.com/users/mixer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixer/subscriptions","organizations_url":"https://api.github.com/users/mixer/orgs","repos_url":"https://api.github.com/users/mixer/repos","events_url":"https://api.github.com/users/mixer/events{/privacy}","received_events_url":"https://api.github.com/users/mixer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixer/discord-sync","description":null,"fork":false,"url":"https://api.github.com/repos/mixer/discord-sync","forks_url":"https://api.github.com/repos/mixer/discord-sync/forks","keys_url":"https://api.github.com/repos/mixer/discord-sync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixer/discord-sync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixer/discord-sync/teams","hooks_url":"https://api.github.com/repos/mixer/discord-sync/hooks","issue_events_url":"https://api.github.com/repos/mixer/discord-sync/issues/events{/number}","events_url":"https://api.github.com/repos/mixer/discord-sync/events","assignees_url":"https://api.github.com/repos/mixer/discord-sync/assignees{/user}","branches_url":"https://api.github.com/repos/mixer/discord-sync/branches{/branch}","tags_url":"https://api.github.com/repos/mixer/discord-sync/tags","blobs_url":"https://api.github.com/repos/mixer/discord-sync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixer/discord-sync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixer/discord-sync/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixer/discord-sync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixer/discord-sync/statuses/{sha}","languages_url":"https://api.github.com/repos/mixer/discord-sync/languages","stargazers_url":"https://api.github.com/repos/mixer/discord-sync/stargazers","contributors_url":"https://api.github.com/repos/mixer/discord-sync/contributors","subscribers_url":"https://api.github.com/repos/mixer/discord-sync/subscribers","subscription_url":"https://api.github.com/repos/mixer/discord-sync/subscription","commits_url":"https://api.github.com/repos/mixer/discord-sync/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixer/discord-sync/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixer/discord-sync/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixer/discord-sync/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixer/discord-sync/contents/{+path}","compare_url":"https://api.github.com/repos/mixer/discord-sync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixer/discord-sync/merges","archive_url":"https://api.github.com/repos/mixer/discord-sync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixer/discord-sync/downloads","issues_url":"https://api.github.com/repos/mixer/discord-sync/issues{/number}","pulls_url":"https://api.github.com/repos/mixer/discord-sync/pulls{/number}","milestones_url":"https://api.github.com/repos/mixer/discord-sync/milestones{/number}","notifications_url":"https://api.github.com/repos/mixer/discord-sync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixer/discord-sync/labels{/name}","releases_url":"https://api.github.com/repos/mixer/discord-sync/releases{/id}","deployments_url":"https://api.github.com/repos/mixer/discord-sync/deployments","created_at":"2016-06-20T22:34:38Z","updated_at":"2018-01-15T23:56:38Z","pushed_at":"2018-02-27T21:48:41Z","git_url":"git://github.com/mixer/discord-sync.git","ssh_url":"git@github.com:mixer/discord-sync.git","clone_url":"https://github.com/mixer/discord-sync.git","svn_url":"https://github.com/mixer/discord-sync","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"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":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixer/discord-sync/pulls/12"},"html":{"href":"https://github.com/mixer/discord-sync/pull/12"},"issue":{"href":"https://api.github.com/repos/mixer/discord-sync/issues/12"},"comments":{"href":"https://api.github.com/repos/mixer/discord-sync/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/mixer/discord-sync/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/mixer/discord-sync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixer/discord-sync/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/mixer/discord-sync/statuses/724a79f27c0a2b9d1700fd6328e2101d49ecd9a9"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":201,"deletions":175,"changed_files":12}}
{"actor":{"display_login":"EthanWaite"}}