{"action":"created","comment":{"url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/comments/235950455","pull_request_review_id":177938780,"id":235950455,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTk1MDQ1NQ==","diff_hunk":"@@ -4,117 +4,119 @@\n \n // Logger module\n \n-const TAG = 'logger';\n+/* eslint no-console: 0 */\n+\n+const cliColor = require('cli-color');\n \n+const TAG = 'logger';\n let alertChannel = null;\n-let cliColor = require('cli-color');\n let debugs = true;\n let testing = false;\n \n module.exports = {\n     // General status messages, e.g. Connections, Disconnections, uptime etc\n     botStatus: function botStatus(mod, message) {\n-        var args = Array.prototype.slice.call(arguments, botStatus.length - 1);\n-        args[0] = '[STATUS] ' + '(' + mod + ') ' + message;\n+        const args = Array.prototype.slice.call(arguments, botStatus.length - 1);\n+        args[0] = `[STATUS] (${mod}) ${message}`;\n         colorizeString(cliColor.green.bold, args);\n     },\n     // Errors that cannot be recovered, may cause damage, and the server MUST be stopped imediately\n     critical: function critical(mod, message) {\n-        var args = Array.prototype.slice.call(arguments, critical.length - 1);\n-        args[0] = '[CRITICAL_ERROR] ' + '(' + mod + ') ' + message;\n+        const args = Array.prototype.slice.call(arguments, critical.length - 1);\n+        args[0] = `[CRITICAL_ERROR] (${mod}) ${message}`;\n         colorizeString(cliColor.red.bold, args);\n         developeralert(mod, message, '[CRITICAL] ', true);\n     },\n     // General debug messages\n     debug: function debug(mod, message) {\n         if (debugs === false) { return; }\n-        var args = Array.prototype.slice.call(arguments, debug.length - 1);\n-        args[0] = '[DEBUG] ' + '(' + mod + ') ' + message;\n+        const args = Array.prototype.slice.call(arguments, debug.length - 1);","path":"src/lib/logger.js","position":38,"original_position":38,"commit_id":"19a3f7a52daf7c7fb989c72ef504895172f0f364","original_commit_id":"27c63482cc6f3f7b74b7a1b7c2d33a49119cdc0d","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Use the rest parameters instead of 'arguments'. (prefer-rest-params)](https://app.codacy.com/app/JamesLongman/DIGBot/pullRequest?prid=2588642)","created_at":"2018-11-23T14:06:27Z","updated_at":"2018-11-23T14:06:28Z","html_url":"https://github.com/JamesLongman/DIGBot/pull/71#discussion_r235950455","pull_request_url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/comments/235950455"},"html":{"href":"https://github.com/JamesLongman/DIGBot/pull/71#discussion_r235950455"},"pull_request":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71","id":232153070,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMTUzMDcw","html_url":"https://github.com/JamesLongman/DIGBot/pull/71","diff_url":"https://github.com/JamesLongman/DIGBot/pull/71.diff","patch_url":"https://github.com/JamesLongman/DIGBot/pull/71.patch","issue_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues/71","number":71,"state":"open","locked":false,"title":"#5 In progress (PR up for CI test, do not merge)","user":{"login":"JamesLongman","id":26884414,"node_id":"MDQ6VXNlcjI2ODg0NDE0","avatar_url":"https://avatars0.githubusercontent.com/u/26884414?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesLongman","html_url":"https://github.com/JamesLongman","followers_url":"https://api.github.com/users/JamesLongman/followers","following_url":"https://api.github.com/users/JamesLongman/following{/other_user}","gists_url":"https://api.github.com/users/JamesLongman/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLongman/subscriptions","organizations_url":"https://api.github.com/users/JamesLongman/orgs","repos_url":"https://api.github.com/users/JamesLongman/repos","events_url":"https://api.github.com/users/JamesLongman/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLongman/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-20T00:14:15Z","updated_at":"2018-11-23T14:06:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49404e4028c93e99cd7b54960ad318d197f53259","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1040603112,"node_id":"MDU6TGFiZWwxMDQwNjAzMTEy","url":"https://api.github.com/repos/JamesLongman/DIGBot/labels/PR:%20Changes%20Required","name":"PR: Changes Required","color":"C0C0C0","default":false}],"milestone":{"url":"https://api.github.com/repos/JamesLongman/DIGBot/milestones/3","html_url":"https://github.com/JamesLongman/DIGBot/milestone/3","labels_url":"https://api.github.com/repos/JamesLongman/DIGBot/milestones/3/labels","id":3779645,"node_id":"MDk6TWlsZXN0b25lMzc3OTY0NQ==","number":3,"title":"v0.1.1","description":"Second infrastructure patch:\r\n\r\nCI tests + style\r\nDocker update","creator":{"login":"JamesLongman","id":26884414,"node_id":"MDQ6VXNlcjI2ODg0NDE0","avatar_url":"https://avatars0.githubusercontent.com/u/26884414?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesLongman","html_url":"https://github.com/JamesLongman","followers_url":"https://api.github.com/users/JamesLongman/followers","following_url":"https://api.github.com/users/JamesLongman/following{/other_user}","gists_url":"https://api.github.com/users/JamesLongman/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLongman/subscriptions","organizations_url":"https://api.github.com/users/JamesLongman/orgs","repos_url":"https://api.github.com/users/JamesLongman/repos","events_url":"https://api.github.com/users/JamesLongman/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLongman/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2018-10-29T23:10:18Z","updated_at":"2018-11-20T00:14:15Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71/commits","review_comments_url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71/comments","review_comment_url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues/71/comments","statuses_url":"https://api.github.com/repos/JamesLongman/DIGBot/statuses/19a3f7a52daf7c7fb989c72ef504895172f0f364","head":{"label":"JamesLongman:#5","ref":"#5","sha":"19a3f7a52daf7c7fb989c72ef504895172f0f364","user":{"login":"JamesLongman","id":26884414,"node_id":"MDQ6VXNlcjI2ODg0NDE0","avatar_url":"https://avatars0.githubusercontent.com/u/26884414?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesLongman","html_url":"https://github.com/JamesLongman","followers_url":"https://api.github.com/users/JamesLongman/followers","following_url":"https://api.github.com/users/JamesLongman/following{/other_user}","gists_url":"https://api.github.com/users/JamesLongman/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLongman/subscriptions","organizations_url":"https://api.github.com/users/JamesLongman/orgs","repos_url":"https://api.github.com/users/JamesLongman/repos","events_url":"https://api.github.com/users/JamesLongman/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLongman/received_events","type":"User","site_admin":false},"repo":{"id":146768579,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3Njg1Nzk=","name":"DIGBot","full_name":"JamesLongman/DIGBot","private":false,"owner":{"login":"JamesLongman","id":26884414,"node_id":"MDQ6VXNlcjI2ODg0NDE0","avatar_url":"https://avatars0.githubusercontent.com/u/26884414?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesLongman","html_url":"https://github.com/JamesLongman","followers_url":"https://api.github.com/users/JamesLongman/followers","following_url":"https://api.github.com/users/JamesLongman/following{/other_user}","gists_url":"https://api.github.com/users/JamesLongman/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLongman/subscriptions","organizations_url":"https://api.github.com/users/JamesLongman/orgs","repos_url":"https://api.github.com/users/JamesLongman/repos","events_url":"https://api.github.com/users/JamesLongman/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLongman/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JamesLongman/DIGBot","description":"Not yet open source. DIGBot is a custom made discord bot for the DIG gaming community","fork":false,"url":"https://api.github.com/repos/JamesLongman/DIGBot","forks_url":"https://api.github.com/repos/JamesLongman/DIGBot/forks","keys_url":"https://api.github.com/repos/JamesLongman/DIGBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesLongman/DIGBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesLongman/DIGBot/teams","hooks_url":"https://api.github.com/repos/JamesLongman/DIGBot/hooks","issue_events_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues/events{/number}","events_url":"https://api.github.com/repos/JamesLongman/DIGBot/events","assignees_url":"https://api.github.com/repos/JamesLongman/DIGBot/assignees{/user}","branches_url":"https://api.github.com/repos/JamesLongman/DIGBot/branches{/branch}","tags_url":"https://api.github.com/repos/JamesLongman/DIGBot/tags","blobs_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesLongman/DIGBot/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesLongman/DIGBot/languages","stargazers_url":"https://api.github.com/repos/JamesLongman/DIGBot/stargazers","contributors_url":"https://api.github.com/repos/JamesLongman/DIGBot/contributors","subscribers_url":"https://api.github.com/repos/JamesLongman/DIGBot/subscribers","subscription_url":"https://api.github.com/repos/JamesLongman/DIGBot/subscription","commits_url":"https://api.github.com/repos/JamesLongman/DIGBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesLongman/DIGBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesLongman/DIGBot/contents/{+path}","compare_url":"https://api.github.com/repos/JamesLongman/DIGBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesLongman/DIGBot/merges","archive_url":"https://api.github.com/repos/JamesLongman/DIGBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesLongman/DIGBot/downloads","issues_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues{/number}","pulls_url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesLongman/DIGBot/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesLongman/DIGBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesLongman/DIGBot/labels{/name}","releases_url":"https://api.github.com/repos/JamesLongman/DIGBot/releases{/id}","deployments_url":"https://api.github.com/repos/JamesLongman/DIGBot/deployments","created_at":"2018-08-30T15:18:11Z","updated_at":"2018-11-19T16:24:43Z","pushed_at":"2018-11-23T12:43:47Z","git_url":"git://github.com/JamesLongman/DIGBot.git","ssh_url":"git@github.com:JamesLongman/DIGBot.git","clone_url":"https://github.com/JamesLongman/DIGBot.git","svn_url":"https://github.com/JamesLongman/DIGBot","homepage":"","size":417,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":49,"watchers":2,"default_branch":"develop"}},"base":{"label":"JamesLongman:develop","ref":"develop","sha":"60af40991a690571e75e3691ec1d0ddb4b3850e6","user":{"login":"JamesLongman","id":26884414,"node_id":"MDQ6VXNlcjI2ODg0NDE0","avatar_url":"https://avatars0.githubusercontent.com/u/26884414?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesLongman","html_url":"https://github.com/JamesLongman","followers_url":"https://api.github.com/users/JamesLongman/followers","following_url":"https://api.github.com/users/JamesLongman/following{/other_user}","gists_url":"https://api.github.com/users/JamesLongman/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLongman/subscriptions","organizations_url":"https://api.github.com/users/JamesLongman/orgs","repos_url":"https://api.github.com/users/JamesLongman/repos","events_url":"https://api.github.com/users/JamesLongman/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLongman/received_events","type":"User","site_admin":false},"repo":{"id":146768579,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3Njg1Nzk=","name":"DIGBot","full_name":"JamesLongman/DIGBot","private":false,"owner":{"login":"JamesLongman","id":26884414,"node_id":"MDQ6VXNlcjI2ODg0NDE0","avatar_url":"https://avatars0.githubusercontent.com/u/26884414?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesLongman","html_url":"https://github.com/JamesLongman","followers_url":"https://api.github.com/users/JamesLongman/followers","following_url":"https://api.github.com/users/JamesLongman/following{/other_user}","gists_url":"https://api.github.com/users/JamesLongman/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesLongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesLongman/subscriptions","organizations_url":"https://api.github.com/users/JamesLongman/orgs","repos_url":"https://api.github.com/users/JamesLongman/repos","events_url":"https://api.github.com/users/JamesLongman/events{/privacy}","received_events_url":"https://api.github.com/users/JamesLongman/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JamesLongman/DIGBot","description":"Not yet open source. DIGBot is a custom made discord bot for the DIG gaming community","fork":false,"url":"https://api.github.com/repos/JamesLongman/DIGBot","forks_url":"https://api.github.com/repos/JamesLongman/DIGBot/forks","keys_url":"https://api.github.com/repos/JamesLongman/DIGBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesLongman/DIGBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesLongman/DIGBot/teams","hooks_url":"https://api.github.com/repos/JamesLongman/DIGBot/hooks","issue_events_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues/events{/number}","events_url":"https://api.github.com/repos/JamesLongman/DIGBot/events","assignees_url":"https://api.github.com/repos/JamesLongman/DIGBot/assignees{/user}","branches_url":"https://api.github.com/repos/JamesLongman/DIGBot/branches{/branch}","tags_url":"https://api.github.com/repos/JamesLongman/DIGBot/tags","blobs_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesLongman/DIGBot/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesLongman/DIGBot/languages","stargazers_url":"https://api.github.com/repos/JamesLongman/DIGBot/stargazers","contributors_url":"https://api.github.com/repos/JamesLongman/DIGBot/contributors","subscribers_url":"https://api.github.com/repos/JamesLongman/DIGBot/subscribers","subscription_url":"https://api.github.com/repos/JamesLongman/DIGBot/subscription","commits_url":"https://api.github.com/repos/JamesLongman/DIGBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesLongman/DIGBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesLongman/DIGBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesLongman/DIGBot/contents/{+path}","compare_url":"https://api.github.com/repos/JamesLongman/DIGBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesLongman/DIGBot/merges","archive_url":"https://api.github.com/repos/JamesLongman/DIGBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesLongman/DIGBot/downloads","issues_url":"https://api.github.com/repos/JamesLongman/DIGBot/issues{/number}","pulls_url":"https://api.github.com/repos/JamesLongman/DIGBot/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesLongman/DIGBot/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesLongman/DIGBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesLongman/DIGBot/labels{/name}","releases_url":"https://api.github.com/repos/JamesLongman/DIGBot/releases{/id}","deployments_url":"https://api.github.com/repos/JamesLongman/DIGBot/deployments","created_at":"2018-08-30T15:18:11Z","updated_at":"2018-11-19T16:24:43Z","pushed_at":"2018-11-23T12:43:47Z","git_url":"git://github.com/JamesLongman/DIGBot.git","ssh_url":"git@github.com:JamesLongman/DIGBot.git","clone_url":"https://github.com/JamesLongman/DIGBot.git","svn_url":"https://github.com/JamesLongman/DIGBot","homepage":"","size":417,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":49,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71"},"html":{"href":"https://github.com/JamesLongman/DIGBot/pull/71"},"issue":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/issues/71"},"comments":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/JamesLongman/DIGBot/statuses/19a3f7a52daf7c7fb989c72ef504895172f0f364"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codacy-bot"}}