{"action":"created","comment":{"url":"https://api.github.com/repos/abalabahaha/eris/pulls/comments/79980595","id":79980595,"diff_hunk":"@@ -132,6 +137,17 @@ class Command {\n         return !req;\n     }\n \n+    cooldownCheck(userID) {\n+        if(this.usersOnCooldown.has(userID)) {\n+            return false;\n+        }\n+        this.usersOnCooldown.add(userID);\n+        setTimeout(() => {\n+            this.usersOnCooldown.delete(userID);\n+        }, this.cooldown);\n+        return true;","path":"lib/command/Command.js","position":31,"original_position":31,"commit_id":"23aff585f3bd5b98f721e3c30ae8e74b4fbf0d47","original_commit_id":"23aff585f3bd5b98f721e3c30ae8e74b4fbf0d47","user":{"login":"TehSeph","id":1261826,"avatar_url":"https://avatars.githubusercontent.com/u/1261826?v=3","gravatar_id":"","url":"https://api.github.com/users/TehSeph","html_url":"https://github.com/TehSeph","followers_url":"https://api.github.com/users/TehSeph/followers","following_url":"https://api.github.com/users/TehSeph/following{/other_user}","gists_url":"https://api.github.com/users/TehSeph/gists{/gist_id}","starred_url":"https://api.github.com/users/TehSeph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TehSeph/subscriptions","organizations_url":"https://api.github.com/users/TehSeph/orgs","repos_url":"https://api.github.com/users/TehSeph/repos","events_url":"https://api.github.com/users/TehSeph/events{/privacy}","received_events_url":"https://api.github.com/users/TehSeph/received_events","type":"User","site_admin":false},"body":"Shouldn't the two lines above only be set on a successful command (or at least after execute) imo it doesn't make sense to set them here during the check.","created_at":"2016-09-22T06:18:27Z","updated_at":"2016-09-22T06:18:27Z","html_url":"https://github.com/abalabahaha/eris/pull/93#discussion_r79980595","pull_request_url":"https://api.github.com/repos/abalabahaha/eris/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/abalabahaha/eris/pulls/comments/79980595"},"html":{"href":"https://github.com/abalabahaha/eris/pull/93#discussion_r79980595"},"pull_request":{"href":"https://api.github.com/repos/abalabahaha/eris/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/abalabahaha/eris/pulls/93","id":86247372,"html_url":"https://github.com/abalabahaha/eris/pull/93","diff_url":"https://github.com/abalabahaha/eris/pull/93.diff","patch_url":"https://github.com/abalabahaha/eris/pull/93.patch","issue_url":"https://api.github.com/repos/abalabahaha/eris/issues/93","number":93,"state":"open","locked":false,"title":"Add cooldown to Command","user":{"login":"brussell98","id":16432550,"avatar_url":"https://avatars.githubusercontent.com/u/16432550?v=3","gravatar_id":"","url":"https://api.github.com/users/brussell98","html_url":"https://github.com/brussell98","followers_url":"https://api.github.com/users/brussell98/followers","following_url":"https://api.github.com/users/brussell98/following{/other_user}","gists_url":"https://api.github.com/users/brussell98/gists{/gist_id}","starred_url":"https://api.github.com/users/brussell98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussell98/subscriptions","organizations_url":"https://api.github.com/users/brussell98/orgs","repos_url":"https://api.github.com/users/brussell98/repos","events_url":"https://api.github.com/users/brussell98/events{/privacy}","received_events_url":"https://api.github.com/users/brussell98/received_events","type":"User","site_admin":false},"body":"Because only bakalabahahas don't add colldowns to their commands.","created_at":"2016-09-21T21:46:25Z","updated_at":"2016-09-22T06:18:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48a71072666848a1ffb0338877a9582cea5d1e1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/abalabahaha/eris/pulls/93/commits","review_comments_url":"https://api.github.com/repos/abalabahaha/eris/pulls/93/comments","review_comment_url":"https://api.github.com/repos/abalabahaha/eris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abalabahaha/eris/issues/93/comments","statuses_url":"https://api.github.com/repos/abalabahaha/eris/statuses/23aff585f3bd5b98f721e3c30ae8e74b4fbf0d47","head":{"label":"brussell98:cooldown","ref":"cooldown","sha":"23aff585f3bd5b98f721e3c30ae8e74b4fbf0d47","user":{"login":"brussell98","id":16432550,"avatar_url":"https://avatars.githubusercontent.com/u/16432550?v=3","gravatar_id":"","url":"https://api.github.com/users/brussell98","html_url":"https://github.com/brussell98","followers_url":"https://api.github.com/users/brussell98/followers","following_url":"https://api.github.com/users/brussell98/following{/other_user}","gists_url":"https://api.github.com/users/brussell98/gists{/gist_id}","starred_url":"https://api.github.com/users/brussell98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussell98/subscriptions","organizations_url":"https://api.github.com/users/brussell98/orgs","repos_url":"https://api.github.com/users/brussell98/repos","events_url":"https://api.github.com/users/brussell98/events{/privacy}","received_events_url":"https://api.github.com/users/brussell98/received_events","type":"User","site_admin":false},"repo":{"id":65522069,"name":"eris","full_name":"brussell98/eris","owner":{"login":"brussell98","id":16432550,"avatar_url":"https://avatars.githubusercontent.com/u/16432550?v=3","gravatar_id":"","url":"https://api.github.com/users/brussell98","html_url":"https://github.com/brussell98","followers_url":"https://api.github.com/users/brussell98/followers","following_url":"https://api.github.com/users/brussell98/following{/other_user}","gists_url":"https://api.github.com/users/brussell98/gists{/gist_id}","starred_url":"https://api.github.com/users/brussell98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brussell98/subscriptions","organizations_url":"https://api.github.com/users/brussell98/orgs","repos_url":"https://api.github.com/users/brussell98/repos","events_url":"https://api.github.com/users/brussell98/events{/privacy}","received_events_url":"https://api.github.com/users/brussell98/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brussell98/eris","description":"A NodeJS Discord library","fork":true,"url":"https://api.github.com/repos/brussell98/eris","forks_url":"https://api.github.com/repos/brussell98/eris/forks","keys_url":"https://api.github.com/repos/brussell98/eris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brussell98/eris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brussell98/eris/teams","hooks_url":"https://api.github.com/repos/brussell98/eris/hooks","issue_events_url":"https://api.github.com/repos/brussell98/eris/issues/events{/number}","events_url":"https://api.github.com/repos/brussell98/eris/events","assignees_url":"https://api.github.com/repos/brussell98/eris/assignees{/user}","branches_url":"https://api.github.com/repos/brussell98/eris/branches{/branch}","tags_url":"https://api.github.com/repos/brussell98/eris/tags","blobs_url":"https://api.github.com/repos/brussell98/eris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brussell98/eris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brussell98/eris/git/refs{/sha}","trees_url":"https://api.github.com/repos/brussell98/eris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brussell98/eris/statuses/{sha}","languages_url":"https://api.github.com/repos/brussell98/eris/languages","stargazers_url":"https://api.github.com/repos/brussell98/eris/stargazers","contributors_url":"https://api.github.com/repos/brussell98/eris/contributors","subscribers_url":"https://api.github.com/repos/brussell98/eris/subscribers","subscription_url":"https://api.github.com/repos/brussell98/eris/subscription","commits_url":"https://api.github.com/repos/brussell98/eris/commits{/sha}","git_commits_url":"https://api.github.com/repos/brussell98/eris/git/commits{/sha}","comments_url":"https://api.github.com/repos/brussell98/eris/comments{/number}","issue_comment_url":"https://api.github.com/repos/brussell98/eris/issues/comments{/number}","contents_url":"https://api.github.com/repos/brussell98/eris/contents/{+path}","compare_url":"https://api.github.com/repos/brussell98/eris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brussell98/eris/merges","archive_url":"https://api.github.com/repos/brussell98/eris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brussell98/eris/downloads","issues_url":"https://api.github.com/repos/brussell98/eris/issues{/number}","pulls_url":"https://api.github.com/repos/brussell98/eris/pulls{/number}","milestones_url":"https://api.github.com/repos/brussell98/eris/milestones{/number}","notifications_url":"https://api.github.com/repos/brussell98/eris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brussell98/eris/labels{/name}","releases_url":"https://api.github.com/repos/brussell98/eris/releases{/id}","deployments_url":"https://api.github.com/repos/brussell98/eris/deployments","created_at":"2016-08-12T04:01:51Z","updated_at":"2016-08-12T04:01:52Z","pushed_at":"2016-09-21T21:54:34Z","git_url":"git://github.com/brussell98/eris.git","ssh_url":"git@github.com:brussell98/eris.git","clone_url":"https://github.com/brussell98/eris.git","svn_url":"https://github.com/brussell98/eris","homepage":"https://abal.moe/Eris","size":657,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abalabahaha:dev","ref":"dev","sha":"5b7b8091e1b4b9ec91fc5b1e4d25a55956c0e697","user":{"login":"abalabahaha","id":2415829,"avatar_url":"https://avatars.githubusercontent.com/u/2415829?v=3","gravatar_id":"","url":"https://api.github.com/users/abalabahaha","html_url":"https://github.com/abalabahaha","followers_url":"https://api.github.com/users/abalabahaha/followers","following_url":"https://api.github.com/users/abalabahaha/following{/other_user}","gists_url":"https://api.github.com/users/abalabahaha/gists{/gist_id}","starred_url":"https://api.github.com/users/abalabahaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abalabahaha/subscriptions","organizations_url":"https://api.github.com/users/abalabahaha/orgs","repos_url":"https://api.github.com/users/abalabahaha/repos","events_url":"https://api.github.com/users/abalabahaha/events{/privacy}","received_events_url":"https://api.github.com/users/abalabahaha/received_events","type":"User","site_admin":false},"repo":{"id":62346661,"name":"eris","full_name":"abalabahaha/eris","owner":{"login":"abalabahaha","id":2415829,"avatar_url":"https://avatars.githubusercontent.com/u/2415829?v=3","gravatar_id":"","url":"https://api.github.com/users/abalabahaha","html_url":"https://github.com/abalabahaha","followers_url":"https://api.github.com/users/abalabahaha/followers","following_url":"https://api.github.com/users/abalabahaha/following{/other_user}","gists_url":"https://api.github.com/users/abalabahaha/gists{/gist_id}","starred_url":"https://api.github.com/users/abalabahaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abalabahaha/subscriptions","organizations_url":"https://api.github.com/users/abalabahaha/orgs","repos_url":"https://api.github.com/users/abalabahaha/repos","events_url":"https://api.github.com/users/abalabahaha/events{/privacy}","received_events_url":"https://api.github.com/users/abalabahaha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abalabahaha/eris","description":"A NodeJS Discord library","fork":false,"url":"https://api.github.com/repos/abalabahaha/eris","forks_url":"https://api.github.com/repos/abalabahaha/eris/forks","keys_url":"https://api.github.com/repos/abalabahaha/eris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abalabahaha/eris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abalabahaha/eris/teams","hooks_url":"https://api.github.com/repos/abalabahaha/eris/hooks","issue_events_url":"https://api.github.com/repos/abalabahaha/eris/issues/events{/number}","events_url":"https://api.github.com/repos/abalabahaha/eris/events","assignees_url":"https://api.github.com/repos/abalabahaha/eris/assignees{/user}","branches_url":"https://api.github.com/repos/abalabahaha/eris/branches{/branch}","tags_url":"https://api.github.com/repos/abalabahaha/eris/tags","blobs_url":"https://api.github.com/repos/abalabahaha/eris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abalabahaha/eris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abalabahaha/eris/git/refs{/sha}","trees_url":"https://api.github.com/repos/abalabahaha/eris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abalabahaha/eris/statuses/{sha}","languages_url":"https://api.github.com/repos/abalabahaha/eris/languages","stargazers_url":"https://api.github.com/repos/abalabahaha/eris/stargazers","contributors_url":"https://api.github.com/repos/abalabahaha/eris/contributors","subscribers_url":"https://api.github.com/repos/abalabahaha/eris/subscribers","subscription_url":"https://api.github.com/repos/abalabahaha/eris/subscription","commits_url":"https://api.github.com/repos/abalabahaha/eris/commits{/sha}","git_commits_url":"https://api.github.com/repos/abalabahaha/eris/git/commits{/sha}","comments_url":"https://api.github.com/repos/abalabahaha/eris/comments{/number}","issue_comment_url":"https://api.github.com/repos/abalabahaha/eris/issues/comments{/number}","contents_url":"https://api.github.com/repos/abalabahaha/eris/contents/{+path}","compare_url":"https://api.github.com/repos/abalabahaha/eris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abalabahaha/eris/merges","archive_url":"https://api.github.com/repos/abalabahaha/eris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abalabahaha/eris/downloads","issues_url":"https://api.github.com/repos/abalabahaha/eris/issues{/number}","pulls_url":"https://api.github.com/repos/abalabahaha/eris/pulls{/number}","milestones_url":"https://api.github.com/repos/abalabahaha/eris/milestones{/number}","notifications_url":"https://api.github.com/repos/abalabahaha/eris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abalabahaha/eris/labels{/name}","releases_url":"https://api.github.com/repos/abalabahaha/eris/releases{/id}","deployments_url":"https://api.github.com/repos/abalabahaha/eris/deployments","created_at":"2016-06-30T22:41:48Z","updated_at":"2016-09-20T21:06:36Z","pushed_at":"2016-09-21T21:54:34Z","git_url":"git://github.com/abalabahaha/eris.git","ssh_url":"git@github.com:abalabahaha/eris.git","clone_url":"https://github.com/abalabahaha/eris.git","svn_url":"https://github.com/abalabahaha/eris","homepage":"https://abal.moe/Eris","size":702,"stargazers_count":77,"watchers_count":77,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":1,"forks":24,"open_issues":1,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abalabahaha/eris/pulls/93"},"html":{"href":"https://github.com/abalabahaha/eris/pull/93"},"issue":{"href":"https://api.github.com/repos/abalabahaha/eris/issues/93"},"comments":{"href":"https://api.github.com/repos/abalabahaha/eris/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/abalabahaha/eris/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/abalabahaha/eris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abalabahaha/eris/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/abalabahaha/eris/statuses/23aff585f3bd5b98f721e3c30ae8e74b4fbf0d47"}}}}
{"actor":{"display_login":"TehSeph"}}