{"action":"created","comment":{"url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/comments/57532209","id":57532209,"diff_hunk":"@@ -106,87 +106,97 @@ bot.on(\"message\", function(msg) {\n   if (msg.content.indexOf(prefix) === 0 && Commands[command]) {\n     Logger.info('Executing <' + msg.cleanContent + '> from ' + msg.author.username);\n     if (msg.channel.server) {\n-      Permissions.GetLevel(msg.channel.server, msg.sender.id).then(function(level) {\n-        if (level >= Commands[command].level) {\n-          if (Commands[command].music) {\n-            DJ.checkPerms(msg.channel.server, msg.sender).then(function() {\n-              Commands[command].fn(bot, msg, suffix);\n-              return;\n-            }).catch(function(e) {\n-              if (e === 'No permission') {\n-                bot.sendMessage(msg.channel, \"Sorry \" + msg.sender + \", you need a role called `Radio Master` to use this command.\");\n-              } else {\n-                Logger.error(e);\n-                bot.sendMessage(msg.channel, \"Something went wrong, try again.\");\n-              }\n-            });\n-          } else if (Commands[command].nsfw) {\n-            Permissions.GetNSFW(msg.channel.server, msg.channel.id).then(function() {\n-              Commands[command].fn(bot, msg, suffix);\n-            }).catch(function(e) {\n-              if (e === 'No permission') {\n-                Customize.replyCheck('nsfw_disallowed_response', msg.channel.server).then(function(r) {\n-                  if (r === 'default') {\n-                    bot.sendMessage(msg.channel, \"You cannot use NSFW commands in this channel!\");\n-                    return;\n+      var Timeout = require('./runtime/timeout.js');\n+      Timeout.check(Commands[command], msg.channel.server.id).then(function(r) {\n+        if (r !== true) {\n+          bot.sendMessage(msg.channel, 'Wait ' + Math.round(r) + ' more seconds before using that again.');\n+          return;\n+        } else {\n+          Permissions.GetLevel(msg.channel.server, msg.sender.id).then(function(level) {\n+            if (level >= Commands[command].level) {\n+              if (Commands[command].music) {\n+                DJ.checkPerms(msg.channel.server, msg.sender).then(function() {\n+                  Commands[command].fn(bot, msg, suffix);\n+                  return;\n+                }).catch(function(e) {\n+                  if (e === 'No permission') {\n+                    bot.sendMessage(msg.channel, \"Sorry \" + msg.sender + \", you need a role called `Radio Master` to use this command.\");\n                   } else {\n-                    var userstep = r.replace(/%user/g, msg.author.username);\n-                    var serverstep = userstep.replace(/%server/g, msg.channel.server.name);\n-                    var final = serverstep.replace(/%channel/, msg.channel);\n-                    bot.sendMessage(msg.channel, final);\n-                    return;\n+                    Logger.error(e);\n+                    bot.sendMessage(msg.channel, \"Something went wrong, try again.\");\n                   }\n+                });\n+              } else if (Commands[command].nsfw) {\n+                Permissions.GetNSFW(msg.channel.server, msg.channel.id).then(function() {\n+                  Commands[command].fn(bot, msg, suffix);\n                 }).catch(function(e) {\n-                  if (e === 'Nothing found!') {\n-                    Customize.initializeServer(msg.channel.server).then(function() {\n-                      bot.sendMessage(msg.channel, \"You don't have permission to use this command!\");\n+                  if (e === 'No permission') {\n+                    Customize.replyCheck('nsfw_disallowed_response', msg.channel.server).then(function(r) {\n+                      if (r === 'default') {\n+                        bot.sendMessage(msg.channel, \"You cannot use NSFW commands in this channel!\");","path":"DougBot.js","position":62,"original_position":62,"commit_id":"3127b8bf95215cbf9f3c011fc438a52047336af6","original_commit_id":"3127b8bf95215cbf9f3c011fc438a52047336af6","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2016-03-27T17:41:42Z","updated_at":"2016-03-27T17:41:42Z","html_url":"https://github.com/SteamingMutt/WildBeast/pull/70#discussion_r57532209","pull_request_url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/comments/57532209"},"html":{"href":"https://github.com/SteamingMutt/WildBeast/pull/70#discussion_r57532209"},"pull_request":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70","id":64270961,"html_url":"https://github.com/SteamingMutt/WildBeast/pull/70","diff_url":"https://github.com/SteamingMutt/WildBeast/pull/70.diff","patch_url":"https://github.com/SteamingMutt/WildBeast/pull/70.patch","issue_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/70","number":70,"state":"open","locked":false,"title":"2.1.1","user":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars.githubusercontent.com/u/9768134?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-27T17:41:28Z","updated_at":"2016-03-27T17:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e979dc958cdd5f09b1b69829be522deeebca7c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70/commits","review_comments_url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70/comments","review_comment_url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/70/comments","statuses_url":"https://api.github.com/repos/SteamingMutt/WildBeast/statuses/3127b8bf95215cbf9f3c011fc438a52047336af6","head":{"label":"SteamingMutt:alphabeast","ref":"alphabeast","sha":"3127b8bf95215cbf9f3c011fc438a52047336af6","user":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars.githubusercontent.com/u/9768134?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"repo":{"id":47930696,"name":"WildBeast","full_name":"SteamingMutt/WildBeast","owner":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars.githubusercontent.com/u/9768134?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SteamingMutt/WildBeast","description":"A Discord bot made for maximum personalisation and ease of use. ","fork":false,"url":"https://api.github.com/repos/SteamingMutt/WildBeast","forks_url":"https://api.github.com/repos/SteamingMutt/WildBeast/forks","keys_url":"https://api.github.com/repos/SteamingMutt/WildBeast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SteamingMutt/WildBeast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SteamingMutt/WildBeast/teams","hooks_url":"https://api.github.com/repos/SteamingMutt/WildBeast/hooks","issue_events_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/events{/number}","events_url":"https://api.github.com/repos/SteamingMutt/WildBeast/events","assignees_url":"https://api.github.com/repos/SteamingMutt/WildBeast/assignees{/user}","branches_url":"https://api.github.com/repos/SteamingMutt/WildBeast/branches{/branch}","tags_url":"https://api.github.com/repos/SteamingMutt/WildBeast/tags","blobs_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/refs{/sha}","trees_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SteamingMutt/WildBeast/statuses/{sha}","languages_url":"https://api.github.com/repos/SteamingMutt/WildBeast/languages","stargazers_url":"https://api.github.com/repos/SteamingMutt/WildBeast/stargazers","contributors_url":"https://api.github.com/repos/SteamingMutt/WildBeast/contributors","subscribers_url":"https://api.github.com/repos/SteamingMutt/WildBeast/subscribers","subscription_url":"https://api.github.com/repos/SteamingMutt/WildBeast/subscription","commits_url":"https://api.github.com/repos/SteamingMutt/WildBeast/commits{/sha}","git_commits_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/commits{/sha}","comments_url":"https://api.github.com/repos/SteamingMutt/WildBeast/comments{/number}","issue_comment_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/comments{/number}","contents_url":"https://api.github.com/repos/SteamingMutt/WildBeast/contents/{+path}","compare_url":"https://api.github.com/repos/SteamingMutt/WildBeast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SteamingMutt/WildBeast/merges","archive_url":"https://api.github.com/repos/SteamingMutt/WildBeast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SteamingMutt/WildBeast/downloads","issues_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues{/number}","pulls_url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls{/number}","milestones_url":"https://api.github.com/repos/SteamingMutt/WildBeast/milestones{/number}","notifications_url":"https://api.github.com/repos/SteamingMutt/WildBeast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SteamingMutt/WildBeast/labels{/name}","releases_url":"https://api.github.com/repos/SteamingMutt/WildBeast/releases{/id}","deployments_url":"https://api.github.com/repos/SteamingMutt/WildBeast/deployments","created_at":"2015-12-13T18:16:24Z","updated_at":"2016-03-26T16:30:45Z","pushed_at":"2016-03-27T17:41:30Z","git_url":"git://github.com/SteamingMutt/WildBeast.git","ssh_url":"git@github.com:SteamingMutt/WildBeast.git","clone_url":"https://github.com/SteamingMutt/WildBeast.git","svn_url":"https://github.com/SteamingMutt/WildBeast","homepage":"","size":12409,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":10,"forks":9,"open_issues":10,"watchers":8,"default_branch":"master"}},"base":{"label":"SteamingMutt:master","ref":"master","sha":"a1288f915b9e52091d1ba5ef4e8b094ae5b4da10","user":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars.githubusercontent.com/u/9768134?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"repo":{"id":47930696,"name":"WildBeast","full_name":"SteamingMutt/WildBeast","owner":{"login":"SteamingMutt","id":9768134,"avatar_url":"https://avatars.githubusercontent.com/u/9768134?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamingMutt","html_url":"https://github.com/SteamingMutt","followers_url":"https://api.github.com/users/SteamingMutt/followers","following_url":"https://api.github.com/users/SteamingMutt/following{/other_user}","gists_url":"https://api.github.com/users/SteamingMutt/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamingMutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamingMutt/subscriptions","organizations_url":"https://api.github.com/users/SteamingMutt/orgs","repos_url":"https://api.github.com/users/SteamingMutt/repos","events_url":"https://api.github.com/users/SteamingMutt/events{/privacy}","received_events_url":"https://api.github.com/users/SteamingMutt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SteamingMutt/WildBeast","description":"A Discord bot made for maximum personalisation and ease of use. ","fork":false,"url":"https://api.github.com/repos/SteamingMutt/WildBeast","forks_url":"https://api.github.com/repos/SteamingMutt/WildBeast/forks","keys_url":"https://api.github.com/repos/SteamingMutt/WildBeast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SteamingMutt/WildBeast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SteamingMutt/WildBeast/teams","hooks_url":"https://api.github.com/repos/SteamingMutt/WildBeast/hooks","issue_events_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/events{/number}","events_url":"https://api.github.com/repos/SteamingMutt/WildBeast/events","assignees_url":"https://api.github.com/repos/SteamingMutt/WildBeast/assignees{/user}","branches_url":"https://api.github.com/repos/SteamingMutt/WildBeast/branches{/branch}","tags_url":"https://api.github.com/repos/SteamingMutt/WildBeast/tags","blobs_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/refs{/sha}","trees_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SteamingMutt/WildBeast/statuses/{sha}","languages_url":"https://api.github.com/repos/SteamingMutt/WildBeast/languages","stargazers_url":"https://api.github.com/repos/SteamingMutt/WildBeast/stargazers","contributors_url":"https://api.github.com/repos/SteamingMutt/WildBeast/contributors","subscribers_url":"https://api.github.com/repos/SteamingMutt/WildBeast/subscribers","subscription_url":"https://api.github.com/repos/SteamingMutt/WildBeast/subscription","commits_url":"https://api.github.com/repos/SteamingMutt/WildBeast/commits{/sha}","git_commits_url":"https://api.github.com/repos/SteamingMutt/WildBeast/git/commits{/sha}","comments_url":"https://api.github.com/repos/SteamingMutt/WildBeast/comments{/number}","issue_comment_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/comments{/number}","contents_url":"https://api.github.com/repos/SteamingMutt/WildBeast/contents/{+path}","compare_url":"https://api.github.com/repos/SteamingMutt/WildBeast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SteamingMutt/WildBeast/merges","archive_url":"https://api.github.com/repos/SteamingMutt/WildBeast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SteamingMutt/WildBeast/downloads","issues_url":"https://api.github.com/repos/SteamingMutt/WildBeast/issues{/number}","pulls_url":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls{/number}","milestones_url":"https://api.github.com/repos/SteamingMutt/WildBeast/milestones{/number}","notifications_url":"https://api.github.com/repos/SteamingMutt/WildBeast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SteamingMutt/WildBeast/labels{/name}","releases_url":"https://api.github.com/repos/SteamingMutt/WildBeast/releases{/id}","deployments_url":"https://api.github.com/repos/SteamingMutt/WildBeast/deployments","created_at":"2015-12-13T18:16:24Z","updated_at":"2016-03-26T16:30:45Z","pushed_at":"2016-03-27T17:41:30Z","git_url":"git://github.com/SteamingMutt/WildBeast.git","ssh_url":"git@github.com:SteamingMutt/WildBeast.git","clone_url":"https://github.com/SteamingMutt/WildBeast.git","svn_url":"https://github.com/SteamingMutt/WildBeast","homepage":"","size":12409,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":10,"forks":9,"open_issues":10,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70"},"html":{"href":"https://github.com/SteamingMutt/WildBeast/pull/70"},"issue":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/70"},"comments":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/SteamingMutt/WildBeast/statuses/3127b8bf95215cbf9f3c011fc438a52047336af6"}}}}