{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/1","id":233296745,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMjk2NzQ1","html_url":"https://github.com/marines4ever/LottoPlugin/pull/1","diff_url":"https://github.com/marines4ever/LottoPlugin/pull/1.diff","patch_url":"https://github.com/marines4ever/LottoPlugin/pull/1.patch","issue_url":"https://api.github.com/repos/marines4ever/LottoPlugin/issues/1","number":1,"state":"open","locked":false,"title":"Create a Utilities class and rework Lottery to follow more readable standards","user":{"login":"iBlitzkriegi","id":17624546,"node_id":"MDQ6VXNlcjE3NjI0NTQ2","avatar_url":"https://avatars2.githubusercontent.com/u/17624546?v=4","gravatar_id":"","url":"https://api.github.com/users/iBlitzkriegi","html_url":"https://github.com/iBlitzkriegi","followers_url":"https://api.github.com/users/iBlitzkriegi/followers","following_url":"https://api.github.com/users/iBlitzkriegi/following{/other_user}","gists_url":"https://api.github.com/users/iBlitzkriegi/gists{/gist_id}","starred_url":"https://api.github.com/users/iBlitzkriegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBlitzkriegi/subscriptions","organizations_url":"https://api.github.com/users/iBlitzkriegi/orgs","repos_url":"https://api.github.com/users/iBlitzkriegi/repos","events_url":"https://api.github.com/users/iBlitzkriegi/events{/privacy}","received_events_url":"https://api.github.com/users/iBlitzkriegi/received_events","type":"User","site_admin":false},"body":"I also added a Util method that helps avoid repeating code with sending messages, and made it take in a command sender to avoid unneeded casting. Moreover, I converted Lottery to the use of switch cases to allow for a lot more readable argument checking, along with reformatting the if's to be in a more efficient way and be a lot more readable. ","created_at":"2018-11-24T02:35:32Z","updated_at":"2018-11-24T02:35:32Z","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/marines4ever/LottoPlugin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marines4ever/LottoPlugin/issues/1/comments","statuses_url":"https://api.github.com/repos/marines4ever/LottoPlugin/statuses/2eac404380a5851285eea2a88cbafdbefbec6829","head":{"label":"iBlitzkriegi:master","ref":"master","sha":"2eac404380a5851285eea2a88cbafdbefbec6829","user":{"login":"iBlitzkriegi","id":17624546,"node_id":"MDQ6VXNlcjE3NjI0NTQ2","avatar_url":"https://avatars2.githubusercontent.com/u/17624546?v=4","gravatar_id":"","url":"https://api.github.com/users/iBlitzkriegi","html_url":"https://github.com/iBlitzkriegi","followers_url":"https://api.github.com/users/iBlitzkriegi/followers","following_url":"https://api.github.com/users/iBlitzkriegi/following{/other_user}","gists_url":"https://api.github.com/users/iBlitzkriegi/gists{/gist_id}","starred_url":"https://api.github.com/users/iBlitzkriegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBlitzkriegi/subscriptions","organizations_url":"https://api.github.com/users/iBlitzkriegi/orgs","repos_url":"https://api.github.com/users/iBlitzkriegi/repos","events_url":"https://api.github.com/users/iBlitzkriegi/events{/privacy}","received_events_url":"https://api.github.com/users/iBlitzkriegi/received_events","type":"User","site_admin":false},"repo":{"id":158894638,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg4OTQ2Mzg=","name":"LottoPlugin","full_name":"iBlitzkriegi/LottoPlugin","private":false,"owner":{"login":"iBlitzkriegi","id":17624546,"node_id":"MDQ6VXNlcjE3NjI0NTQ2","avatar_url":"https://avatars2.githubusercontent.com/u/17624546?v=4","gravatar_id":"","url":"https://api.github.com/users/iBlitzkriegi","html_url":"https://github.com/iBlitzkriegi","followers_url":"https://api.github.com/users/iBlitzkriegi/followers","following_url":"https://api.github.com/users/iBlitzkriegi/following{/other_user}","gists_url":"https://api.github.com/users/iBlitzkriegi/gists{/gist_id}","starred_url":"https://api.github.com/users/iBlitzkriegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBlitzkriegi/subscriptions","organizations_url":"https://api.github.com/users/iBlitzkriegi/orgs","repos_url":"https://api.github.com/users/iBlitzkriegi/repos","events_url":"https://api.github.com/users/iBlitzkriegi/events{/privacy}","received_events_url":"https://api.github.com/users/iBlitzkriegi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/iBlitzkriegi/LottoPlugin","description":null,"fork":true,"url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin","forks_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/forks","keys_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/teams","hooks_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/hooks","issue_events_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/issues/events{/number}","events_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/events","assignees_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/assignees{/user}","branches_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/branches{/branch}","tags_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/tags","blobs_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/statuses/{sha}","languages_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/languages","stargazers_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/stargazers","contributors_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/contributors","subscribers_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/subscribers","subscription_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/subscription","commits_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/contents/{+path}","compare_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/merges","archive_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/downloads","issues_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/issues{/number}","pulls_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/pulls{/number}","milestones_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/milestones{/number}","notifications_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/labels{/name}","releases_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/releases{/id}","deployments_url":"https://api.github.com/repos/iBlitzkriegi/LottoPlugin/deployments","created_at":"2018-11-24T02:11:12Z","updated_at":"2018-11-24T02:33:55Z","pushed_at":"2018-11-24T02:33:53Z","git_url":"git://github.com/iBlitzkriegi/LottoPlugin.git","ssh_url":"git@github.com:iBlitzkriegi/LottoPlugin.git","clone_url":"https://github.com/iBlitzkriegi/LottoPlugin.git","svn_url":"https://github.com/iBlitzkriegi/LottoPlugin","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"marines4ever:master","ref":"master","sha":"0ce1edc96bf93dcc4a8adc283d770e23afe85a17","user":{"login":"marines4ever","id":4657560,"node_id":"MDQ6VXNlcjQ2NTc1NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/4657560?v=4","gravatar_id":"","url":"https://api.github.com/users/marines4ever","html_url":"https://github.com/marines4ever","followers_url":"https://api.github.com/users/marines4ever/followers","following_url":"https://api.github.com/users/marines4ever/following{/other_user}","gists_url":"https://api.github.com/users/marines4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/marines4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marines4ever/subscriptions","organizations_url":"https://api.github.com/users/marines4ever/orgs","repos_url":"https://api.github.com/users/marines4ever/repos","events_url":"https://api.github.com/users/marines4ever/events{/privacy}","received_events_url":"https://api.github.com/users/marines4ever/received_events","type":"User","site_admin":false},"repo":{"id":158893812,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg4OTM4MTI=","name":"LottoPlugin","full_name":"marines4ever/LottoPlugin","private":false,"owner":{"login":"marines4ever","id":4657560,"node_id":"MDQ6VXNlcjQ2NTc1NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/4657560?v=4","gravatar_id":"","url":"https://api.github.com/users/marines4ever","html_url":"https://github.com/marines4ever","followers_url":"https://api.github.com/users/marines4ever/followers","following_url":"https://api.github.com/users/marines4ever/following{/other_user}","gists_url":"https://api.github.com/users/marines4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/marines4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marines4ever/subscriptions","organizations_url":"https://api.github.com/users/marines4ever/orgs","repos_url":"https://api.github.com/users/marines4ever/repos","events_url":"https://api.github.com/users/marines4ever/events{/privacy}","received_events_url":"https://api.github.com/users/marines4ever/received_events","type":"User","site_admin":false},"html_url":"https://github.com/marines4ever/LottoPlugin","description":null,"fork":false,"url":"https://api.github.com/repos/marines4ever/LottoPlugin","forks_url":"https://api.github.com/repos/marines4ever/LottoPlugin/forks","keys_url":"https://api.github.com/repos/marines4ever/LottoPlugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marines4ever/LottoPlugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marines4ever/LottoPlugin/teams","hooks_url":"https://api.github.com/repos/marines4ever/LottoPlugin/hooks","issue_events_url":"https://api.github.com/repos/marines4ever/LottoPlugin/issues/events{/number}","events_url":"https://api.github.com/repos/marines4ever/LottoPlugin/events","assignees_url":"https://api.github.com/repos/marines4ever/LottoPlugin/assignees{/user}","branches_url":"https://api.github.com/repos/marines4ever/LottoPlugin/branches{/branch}","tags_url":"https://api.github.com/repos/marines4ever/LottoPlugin/tags","blobs_url":"https://api.github.com/repos/marines4ever/LottoPlugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marines4ever/LottoPlugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marines4ever/LottoPlugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/marines4ever/LottoPlugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marines4ever/LottoPlugin/statuses/{sha}","languages_url":"https://api.github.com/repos/marines4ever/LottoPlugin/languages","stargazers_url":"https://api.github.com/repos/marines4ever/LottoPlugin/stargazers","contributors_url":"https://api.github.com/repos/marines4ever/LottoPlugin/contributors","subscribers_url":"https://api.github.com/repos/marines4ever/LottoPlugin/subscribers","subscription_url":"https://api.github.com/repos/marines4ever/LottoPlugin/subscription","commits_url":"https://api.github.com/repos/marines4ever/LottoPlugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/marines4ever/LottoPlugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/marines4ever/LottoPlugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/marines4ever/LottoPlugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/marines4ever/LottoPlugin/contents/{+path}","compare_url":"https://api.github.com/repos/marines4ever/LottoPlugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marines4ever/LottoPlugin/merges","archive_url":"https://api.github.com/repos/marines4ever/LottoPlugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marines4ever/LottoPlugin/downloads","issues_url":"https://api.github.com/repos/marines4ever/LottoPlugin/issues{/number}","pulls_url":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls{/number}","milestones_url":"https://api.github.com/repos/marines4ever/LottoPlugin/milestones{/number}","notifications_url":"https://api.github.com/repos/marines4ever/LottoPlugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marines4ever/LottoPlugin/labels{/name}","releases_url":"https://api.github.com/repos/marines4ever/LottoPlugin/releases{/id}","deployments_url":"https://api.github.com/repos/marines4ever/LottoPlugin/deployments","created_at":"2018-11-24T01:55:14Z","updated_at":"2018-11-24T01:55:24Z","pushed_at":"2018-11-24T01:55:22Z","git_url":"git://github.com/marines4ever/LottoPlugin.git","ssh_url":"git@github.com:marines4ever/LottoPlugin.git","clone_url":"https://github.com/marines4ever/LottoPlugin.git","svn_url":"https://github.com/marines4ever/LottoPlugin","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/1"},"html":{"href":"https://github.com/marines4ever/LottoPlugin/pull/1"},"issue":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/issues/1"},"comments":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/marines4ever/LottoPlugin/statuses/2eac404380a5851285eea2a88cbafdbefbec6829"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":45,"deletions":31,"changed_files":4}}
{"actor":{"display_login":"iBlitzkriegi"}}