{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/za419/CadenceBot/pulls/15","id":154634148,"html_url":"https://github.com/za419/CadenceBot/pull/15","diff_url":"https://github.com/za419/CadenceBot/pull/15.diff","patch_url":"https://github.com/za419/CadenceBot/pull/15.patch","issue_url":"https://api.github.com/repos/za419/CadenceBot/issues/15","number":15,"state":"open","locked":false,"title":"Bugfixes and setup improvements","user":{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false},"body":"This PR pulls several bugfixes for ARIA integration and input validation. Additionally, stream end is now accompanied by an error message and a retry attempt, and generates a log entry including the error provided by Discord and the currently playing song (and the failure time). Neither @kenellorando or I have been able to find the source of these errors, so this will have to do.\r\n\r\nAdditionally, this PR introduces the `first-time-setup.sh` script, which automates the process of setting up a new instance of CadenceBot. I realized while setting up the development instance that it was fairly difficult to correctly perform setup from memory, and it took a lot longer than I would have liked, so this script is now entrusted with managing the first-time setup, especially on systems which use `apt` as package manager.  This means, notably, that if one of the AWS instances running the bots is brought down (say, by being hacked by hackers with Chinese IP addresses, as happened to Cadence itself, sort of), service can be restored simply by deleting the instance, creating a new one, cloning the repository, running the script, and starting the service. Its not trivial, but its damn close.\r\n\r\nAlso, this PR fixes some errors `npm` was generating whenever installing a package, relating to a lack of fields in `package.json`.\r\n\r\nFinally, this PR introduces the ability to archive logs before they are deleted by `restart.sh` simply by writing the appropriate commands in `maillog.sh` - If this is not present, it is simply ignored. This script can optionally be generated by `first-time-setup.sh`.","created_at":"2017-11-25T11:15:35Z","updated_at":"2017-11-25T11:15:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false},"assignees":[{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/za419/CadenceBot/pulls/15/commits","review_comments_url":"https://api.github.com/repos/za419/CadenceBot/pulls/15/comments","review_comment_url":"https://api.github.com/repos/za419/CadenceBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/za419/CadenceBot/issues/15/comments","statuses_url":"https://api.github.com/repos/za419/CadenceBot/statuses/35967816194fb646580e82804d2d156953ff1df3","head":{"label":"za419:dev-master","ref":"dev-master","sha":"35967816194fb646580e82804d2d156953ff1df3","user":{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false},"repo":{"id":108363420,"name":"CadenceBot","full_name":"za419/CadenceBot","owner":{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/za419/CadenceBot","description":"A Discord bot for Cadence Radio","fork":false,"url":"https://api.github.com/repos/za419/CadenceBot","forks_url":"https://api.github.com/repos/za419/CadenceBot/forks","keys_url":"https://api.github.com/repos/za419/CadenceBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/za419/CadenceBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/za419/CadenceBot/teams","hooks_url":"https://api.github.com/repos/za419/CadenceBot/hooks","issue_events_url":"https://api.github.com/repos/za419/CadenceBot/issues/events{/number}","events_url":"https://api.github.com/repos/za419/CadenceBot/events","assignees_url":"https://api.github.com/repos/za419/CadenceBot/assignees{/user}","branches_url":"https://api.github.com/repos/za419/CadenceBot/branches{/branch}","tags_url":"https://api.github.com/repos/za419/CadenceBot/tags","blobs_url":"https://api.github.com/repos/za419/CadenceBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/za419/CadenceBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/za419/CadenceBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/za419/CadenceBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/za419/CadenceBot/statuses/{sha}","languages_url":"https://api.github.com/repos/za419/CadenceBot/languages","stargazers_url":"https://api.github.com/repos/za419/CadenceBot/stargazers","contributors_url":"https://api.github.com/repos/za419/CadenceBot/contributors","subscribers_url":"https://api.github.com/repos/za419/CadenceBot/subscribers","subscription_url":"https://api.github.com/repos/za419/CadenceBot/subscription","commits_url":"https://api.github.com/repos/za419/CadenceBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/za419/CadenceBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/za419/CadenceBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/za419/CadenceBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/za419/CadenceBot/contents/{+path}","compare_url":"https://api.github.com/repos/za419/CadenceBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/za419/CadenceBot/merges","archive_url":"https://api.github.com/repos/za419/CadenceBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/za419/CadenceBot/downloads","issues_url":"https://api.github.com/repos/za419/CadenceBot/issues{/number}","pulls_url":"https://api.github.com/repos/za419/CadenceBot/pulls{/number}","milestones_url":"https://api.github.com/repos/za419/CadenceBot/milestones{/number}","notifications_url":"https://api.github.com/repos/za419/CadenceBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/za419/CadenceBot/labels{/name}","releases_url":"https://api.github.com/repos/za419/CadenceBot/releases{/id}","deployments_url":"https://api.github.com/repos/za419/CadenceBot/deployments","created_at":"2017-10-26T04:56:40Z","updated_at":"2017-10-26T04:57:22Z","pushed_at":"2017-11-25T11:03:19Z","git_url":"git://github.com/za419/CadenceBot.git","ssh_url":"git@github.com:za419/CadenceBot.git","clone_url":"https://github.com/za419/CadenceBot.git","svn_url":"https://github.com/za419/CadenceBot","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"za419:master","ref":"master","sha":"2cd64fd65056c72c74499762aae592bd081b89fa","user":{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false},"repo":{"id":108363420,"name":"CadenceBot","full_name":"za419/CadenceBot","owner":{"login":"za419","id":15851480,"avatar_url":"https://avatars2.githubusercontent.com/u/15851480?v=4","gravatar_id":"","url":"https://api.github.com/users/za419","html_url":"https://github.com/za419","followers_url":"https://api.github.com/users/za419/followers","following_url":"https://api.github.com/users/za419/following{/other_user}","gists_url":"https://api.github.com/users/za419/gists{/gist_id}","starred_url":"https://api.github.com/users/za419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/za419/subscriptions","organizations_url":"https://api.github.com/users/za419/orgs","repos_url":"https://api.github.com/users/za419/repos","events_url":"https://api.github.com/users/za419/events{/privacy}","received_events_url":"https://api.github.com/users/za419/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/za419/CadenceBot","description":"A Discord bot for Cadence Radio","fork":false,"url":"https://api.github.com/repos/za419/CadenceBot","forks_url":"https://api.github.com/repos/za419/CadenceBot/forks","keys_url":"https://api.github.com/repos/za419/CadenceBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/za419/CadenceBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/za419/CadenceBot/teams","hooks_url":"https://api.github.com/repos/za419/CadenceBot/hooks","issue_events_url":"https://api.github.com/repos/za419/CadenceBot/issues/events{/number}","events_url":"https://api.github.com/repos/za419/CadenceBot/events","assignees_url":"https://api.github.com/repos/za419/CadenceBot/assignees{/user}","branches_url":"https://api.github.com/repos/za419/CadenceBot/branches{/branch}","tags_url":"https://api.github.com/repos/za419/CadenceBot/tags","blobs_url":"https://api.github.com/repos/za419/CadenceBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/za419/CadenceBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/za419/CadenceBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/za419/CadenceBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/za419/CadenceBot/statuses/{sha}","languages_url":"https://api.github.com/repos/za419/CadenceBot/languages","stargazers_url":"https://api.github.com/repos/za419/CadenceBot/stargazers","contributors_url":"https://api.github.com/repos/za419/CadenceBot/contributors","subscribers_url":"https://api.github.com/repos/za419/CadenceBot/subscribers","subscription_url":"https://api.github.com/repos/za419/CadenceBot/subscription","commits_url":"https://api.github.com/repos/za419/CadenceBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/za419/CadenceBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/za419/CadenceBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/za419/CadenceBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/za419/CadenceBot/contents/{+path}","compare_url":"https://api.github.com/repos/za419/CadenceBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/za419/CadenceBot/merges","archive_url":"https://api.github.com/repos/za419/CadenceBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/za419/CadenceBot/downloads","issues_url":"https://api.github.com/repos/za419/CadenceBot/issues{/number}","pulls_url":"https://api.github.com/repos/za419/CadenceBot/pulls{/number}","milestones_url":"https://api.github.com/repos/za419/CadenceBot/milestones{/number}","notifications_url":"https://api.github.com/repos/za419/CadenceBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/za419/CadenceBot/labels{/name}","releases_url":"https://api.github.com/repos/za419/CadenceBot/releases{/id}","deployments_url":"https://api.github.com/repos/za419/CadenceBot/deployments","created_at":"2017-10-26T04:56:40Z","updated_at":"2017-10-26T04:57:22Z","pushed_at":"2017-11-25T11:03:19Z","git_url":"git://github.com/za419/CadenceBot.git","ssh_url":"git@github.com:za419/CadenceBot.git","clone_url":"https://github.com/za419/CadenceBot.git","svn_url":"https://github.com/za419/CadenceBot","homepage":null,"size":84,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/za419/CadenceBot/pulls/15"},"html":{"href":"https://github.com/za419/CadenceBot/pull/15"},"issue":{"href":"https://api.github.com/repos/za419/CadenceBot/issues/15"},"comments":{"href":"https://api.github.com/repos/za419/CadenceBot/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/za419/CadenceBot/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/za419/CadenceBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/za419/CadenceBot/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/za419/CadenceBot/statuses/35967816194fb646580e82804d2d156953ff1df3"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":19,"additions":255,"deletions":43,"changed_files":7}}
{"actor":{"display_login":"za419"}}