{"action":"created","comment":{"url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/comments/168949490","pull_request_review_id":97401102,"id":168949490,"diff_hunk":"@@ -0,0 +1,326 @@\n+const Command = require(`${process.cwd()}/base/Command.js`);\n+const { MessageEmbed } = require(\"discord.js\");\n+\n+const perpage = 10;\n+let on = false;\n+\n+class Help extends Command {\n+  constructor(client) {\n+    super(client, {\n+      name: \"help\",\n+      description: \"Get help on a command, command category, or a setting\",\n+      extended: \"This command will display all available commands for your permission level, with the additonal option of getting per command information when you run 'help <command name>'.\",\n+      category: \"System\",\n+      usage: \"help <category/command/setting>\",\n+      aliases: [\"h\", \"halp\", \"commands\"],\n+    });\n+  }\n+\n+  async run(message, [type], level) {\n+    var page = 1;\n+    var n = 0;\n+    var finalpage;\n+    var num;\n+\n+    const embed = new MessageEmbed()\n+      .setTimestamp()\n+      .setColor(message.guild.me.roles.highest.color || 5198940)\n+      .setFooter(`Requested by ${message.author.tag}`, message.author.avatarURL());\n+\n+    let currentCategory = \"\";\n+    const sorted = this.client.commands.sort((p, c) => (p.help.cat > c.help.cat ? 1 : p.help.name > c.help.name && p.help.cat === c.help.cat ? 1 : -1));\n+    if (!type) {\n+      const description = `Command category list\\n\\nUse \\`${message.settings.prefix}help <category>\\` to find commands for a specific category`;\n+      const output = sorted.filter(c => !(level < 10 && c.help.category === \"Owner\") || !(c.help.category === \"NSFW\" && !message.channel.nsfw)).map((c) => {","path":"commands/system/help.js","position":34,"original_position":34,"commit_id":"2399b3e6f58ce663d343b8ac597f252a5bd5bc8c","original_commit_id":"2399b3e6f58ce663d343b8ac597f252a5bd5bc8c","user":{"login":"YoussefElshemi","id":33766341,"avatar_url":"https://avatars2.githubusercontent.com/u/33766341?v=4","gravatar_id":"","url":"https://api.github.com/users/YoussefElshemi","html_url":"https://github.com/YoussefElshemi","followers_url":"https://api.github.com/users/YoussefElshemi/followers","following_url":"https://api.github.com/users/YoussefElshemi/following{/other_user}","gists_url":"https://api.github.com/users/YoussefElshemi/gists{/gist_id}","starred_url":"https://api.github.com/users/YoussefElshemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoussefElshemi/subscriptions","organizations_url":"https://api.github.com/users/YoussefElshemi/orgs","repos_url":"https://api.github.com/users/YoussefElshemi/repos","events_url":"https://api.github.com/users/YoussefElshemi/events{/privacy}","received_events_url":"https://api.github.com/users/YoussefElshemi/received_events","type":"User","site_admin":false},"body":"I used Yukines PR and modified it so it’s paginated, most of the algorithmic stuff is his","created_at":"2018-02-18T12:04:28Z","updated_at":"2018-02-18T12:04:29Z","html_url":"https://github.com/NotAWeebDev/Misaki/pull/64#discussion_r168949490","pull_request_url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/comments/168949490"},"html":{"href":"https://github.com/NotAWeebDev/Misaki/pull/64#discussion_r168949490"},"pull_request":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64"}},"in_reply_to_id":168948523},"pull_request":{"url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64","id":169802588,"html_url":"https://github.com/NotAWeebDev/Misaki/pull/64","diff_url":"https://github.com/NotAWeebDev/Misaki/pull/64.diff","patch_url":"https://github.com/NotAWeebDev/Misaki/pull/64.patch","issue_url":"https://api.github.com/repos/NotAWeebDev/Misaki/issues/64","number":64,"state":"open","locked":false,"title":"added paginated help","user":{"login":"YoussefElshemi","id":33766341,"avatar_url":"https://avatars2.githubusercontent.com/u/33766341?v=4","gravatar_id":"","url":"https://api.github.com/users/YoussefElshemi","html_url":"https://github.com/YoussefElshemi","followers_url":"https://api.github.com/users/YoussefElshemi/followers","following_url":"https://api.github.com/users/YoussefElshemi/following{/other_user}","gists_url":"https://api.github.com/users/YoussefElshemi/gists{/gist_id}","starred_url":"https://api.github.com/users/YoussefElshemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoussefElshemi/subscriptions","organizations_url":"https://api.github.com/users/YoussefElshemi/orgs","repos_url":"https://api.github.com/users/YoussefElshemi/repos","events_url":"https://api.github.com/users/YoussefElshemi/events{/privacy}","received_events_url":"https://api.github.com/users/YoussefElshemi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-17T21:32:51Z","updated_at":"2018-02-18T12:04:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3177a8972b10d9e1a9f822d700d73f4ec83d99a9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":791234992,"url":"https://api.github.com/repos/NotAWeebDev/Misaki/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64/commits","review_comments_url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64/comments","review_comment_url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NotAWeebDev/Misaki/issues/64/comments","statuses_url":"https://api.github.com/repos/NotAWeebDev/Misaki/statuses/2399b3e6f58ce663d343b8ac597f252a5bd5bc8c","head":{"label":"YoussefElshemi:master","ref":"master","sha":"2399b3e6f58ce663d343b8ac597f252a5bd5bc8c","user":{"login":"YoussefElshemi","id":33766341,"avatar_url":"https://avatars2.githubusercontent.com/u/33766341?v=4","gravatar_id":"","url":"https://api.github.com/users/YoussefElshemi","html_url":"https://github.com/YoussefElshemi","followers_url":"https://api.github.com/users/YoussefElshemi/followers","following_url":"https://api.github.com/users/YoussefElshemi/following{/other_user}","gists_url":"https://api.github.com/users/YoussefElshemi/gists{/gist_id}","starred_url":"https://api.github.com/users/YoussefElshemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoussefElshemi/subscriptions","organizations_url":"https://api.github.com/users/YoussefElshemi/orgs","repos_url":"https://api.github.com/users/YoussefElshemi/repos","events_url":"https://api.github.com/users/YoussefElshemi/events{/privacy}","received_events_url":"https://api.github.com/users/YoussefElshemi/received_events","type":"User","site_admin":false},"repo":{"id":121893012,"name":"Misaki","full_name":"YoussefElshemi/Misaki","owner":{"login":"YoussefElshemi","id":33766341,"avatar_url":"https://avatars2.githubusercontent.com/u/33766341?v=4","gravatar_id":"","url":"https://api.github.com/users/YoussefElshemi","html_url":"https://github.com/YoussefElshemi","followers_url":"https://api.github.com/users/YoussefElshemi/followers","following_url":"https://api.github.com/users/YoussefElshemi/following{/other_user}","gists_url":"https://api.github.com/users/YoussefElshemi/gists{/gist_id}","starred_url":"https://api.github.com/users/YoussefElshemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoussefElshemi/subscriptions","organizations_url":"https://api.github.com/users/YoussefElshemi/orgs","repos_url":"https://api.github.com/users/YoussefElshemi/repos","events_url":"https://api.github.com/users/YoussefElshemi/events{/privacy}","received_events_url":"https://api.github.com/users/YoussefElshemi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YoussefElshemi/Misaki","description":"Misaki is Discord Bot designed for communities with commands ranging from gif based anime reactions, to head scratching trivia commands.","fork":true,"url":"https://api.github.com/repos/YoussefElshemi/Misaki","forks_url":"https://api.github.com/repos/YoussefElshemi/Misaki/forks","keys_url":"https://api.github.com/repos/YoussefElshemi/Misaki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YoussefElshemi/Misaki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YoussefElshemi/Misaki/teams","hooks_url":"https://api.github.com/repos/YoussefElshemi/Misaki/hooks","issue_events_url":"https://api.github.com/repos/YoussefElshemi/Misaki/issues/events{/number}","events_url":"https://api.github.com/repos/YoussefElshemi/Misaki/events","assignees_url":"https://api.github.com/repos/YoussefElshemi/Misaki/assignees{/user}","branches_url":"https://api.github.com/repos/YoussefElshemi/Misaki/branches{/branch}","tags_url":"https://api.github.com/repos/YoussefElshemi/Misaki/tags","blobs_url":"https://api.github.com/repos/YoussefElshemi/Misaki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YoussefElshemi/Misaki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YoussefElshemi/Misaki/git/refs{/sha}","trees_url":"https://api.github.com/repos/YoussefElshemi/Misaki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YoussefElshemi/Misaki/statuses/{sha}","languages_url":"https://api.github.com/repos/YoussefElshemi/Misaki/languages","stargazers_url":"https://api.github.com/repos/YoussefElshemi/Misaki/stargazers","contributors_url":"https://api.github.com/repos/YoussefElshemi/Misaki/contributors","subscribers_url":"https://api.github.com/repos/YoussefElshemi/Misaki/subscribers","subscription_url":"https://api.github.com/repos/YoussefElshemi/Misaki/subscription","commits_url":"https://api.github.com/repos/YoussefElshemi/Misaki/commits{/sha}","git_commits_url":"https://api.github.com/repos/YoussefElshemi/Misaki/git/commits{/sha}","comments_url":"https://api.github.com/repos/YoussefElshemi/Misaki/comments{/number}","issue_comment_url":"https://api.github.com/repos/YoussefElshemi/Misaki/issues/comments{/number}","contents_url":"https://api.github.com/repos/YoussefElshemi/Misaki/contents/{+path}","compare_url":"https://api.github.com/repos/YoussefElshemi/Misaki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YoussefElshemi/Misaki/merges","archive_url":"https://api.github.com/repos/YoussefElshemi/Misaki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YoussefElshemi/Misaki/downloads","issues_url":"https://api.github.com/repos/YoussefElshemi/Misaki/issues{/number}","pulls_url":"https://api.github.com/repos/YoussefElshemi/Misaki/pulls{/number}","milestones_url":"https://api.github.com/repos/YoussefElshemi/Misaki/milestones{/number}","notifications_url":"https://api.github.com/repos/YoussefElshemi/Misaki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YoussefElshemi/Misaki/labels{/name}","releases_url":"https://api.github.com/repos/YoussefElshemi/Misaki/releases{/id}","deployments_url":"https://api.github.com/repos/YoussefElshemi/Misaki/deployments","created_at":"2018-02-17T21:13:18Z","updated_at":"2018-02-17T21:13:20Z","pushed_at":"2018-02-18T00:01:20Z","git_url":"git://github.com/YoussefElshemi/Misaki.git","ssh_url":"git@github.com:YoussefElshemi/Misaki.git","clone_url":"https://github.com/YoussefElshemi/Misaki.git","svn_url":"https://github.com/YoussefElshemi/Misaki","homepage":"","size":5402,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"NotAWeebDev:master","ref":"master","sha":"1553c33f1d3a5f7a847b283f43ac4b0bca4d3af3","user":{"login":"NotAWeebDev","id":36539619,"avatar_url":"https://avatars3.githubusercontent.com/u/36539619?v=4","gravatar_id":"","url":"https://api.github.com/users/NotAWeebDev","html_url":"https://github.com/NotAWeebDev","followers_url":"https://api.github.com/users/NotAWeebDev/followers","following_url":"https://api.github.com/users/NotAWeebDev/following{/other_user}","gists_url":"https://api.github.com/users/NotAWeebDev/gists{/gist_id}","starred_url":"https://api.github.com/users/NotAWeebDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotAWeebDev/subscriptions","organizations_url":"https://api.github.com/users/NotAWeebDev/orgs","repos_url":"https://api.github.com/users/NotAWeebDev/repos","events_url":"https://api.github.com/users/NotAWeebDev/events{/privacy}","received_events_url":"https://api.github.com/users/NotAWeebDev/received_events","type":"Organization","site_admin":false},"repo":{"id":115802521,"name":"Misaki","full_name":"NotAWeebDev/Misaki","owner":{"login":"NotAWeebDev","id":36539619,"avatar_url":"https://avatars3.githubusercontent.com/u/36539619?v=4","gravatar_id":"","url":"https://api.github.com/users/NotAWeebDev","html_url":"https://github.com/NotAWeebDev","followers_url":"https://api.github.com/users/NotAWeebDev/followers","following_url":"https://api.github.com/users/NotAWeebDev/following{/other_user}","gists_url":"https://api.github.com/users/NotAWeebDev/gists{/gist_id}","starred_url":"https://api.github.com/users/NotAWeebDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotAWeebDev/subscriptions","organizations_url":"https://api.github.com/users/NotAWeebDev/orgs","repos_url":"https://api.github.com/users/NotAWeebDev/repos","events_url":"https://api.github.com/users/NotAWeebDev/events{/privacy}","received_events_url":"https://api.github.com/users/NotAWeebDev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NotAWeebDev/Misaki","description":"Misaki is Discord Bot designed for communities with commands ranging from gif based anime reactions, to head scratching trivia commands.","fork":false,"url":"https://api.github.com/repos/NotAWeebDev/Misaki","forks_url":"https://api.github.com/repos/NotAWeebDev/Misaki/forks","keys_url":"https://api.github.com/repos/NotAWeebDev/Misaki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NotAWeebDev/Misaki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NotAWeebDev/Misaki/teams","hooks_url":"https://api.github.com/repos/NotAWeebDev/Misaki/hooks","issue_events_url":"https://api.github.com/repos/NotAWeebDev/Misaki/issues/events{/number}","events_url":"https://api.github.com/repos/NotAWeebDev/Misaki/events","assignees_url":"https://api.github.com/repos/NotAWeebDev/Misaki/assignees{/user}","branches_url":"https://api.github.com/repos/NotAWeebDev/Misaki/branches{/branch}","tags_url":"https://api.github.com/repos/NotAWeebDev/Misaki/tags","blobs_url":"https://api.github.com/repos/NotAWeebDev/Misaki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NotAWeebDev/Misaki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NotAWeebDev/Misaki/git/refs{/sha}","trees_url":"https://api.github.com/repos/NotAWeebDev/Misaki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NotAWeebDev/Misaki/statuses/{sha}","languages_url":"https://api.github.com/repos/NotAWeebDev/Misaki/languages","stargazers_url":"https://api.github.com/repos/NotAWeebDev/Misaki/stargazers","contributors_url":"https://api.github.com/repos/NotAWeebDev/Misaki/contributors","subscribers_url":"https://api.github.com/repos/NotAWeebDev/Misaki/subscribers","subscription_url":"https://api.github.com/repos/NotAWeebDev/Misaki/subscription","commits_url":"https://api.github.com/repos/NotAWeebDev/Misaki/commits{/sha}","git_commits_url":"https://api.github.com/repos/NotAWeebDev/Misaki/git/commits{/sha}","comments_url":"https://api.github.com/repos/NotAWeebDev/Misaki/comments{/number}","issue_comment_url":"https://api.github.com/repos/NotAWeebDev/Misaki/issues/comments{/number}","contents_url":"https://api.github.com/repos/NotAWeebDev/Misaki/contents/{+path}","compare_url":"https://api.github.com/repos/NotAWeebDev/Misaki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NotAWeebDev/Misaki/merges","archive_url":"https://api.github.com/repos/NotAWeebDev/Misaki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NotAWeebDev/Misaki/downloads","issues_url":"https://api.github.com/repos/NotAWeebDev/Misaki/issues{/number}","pulls_url":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls{/number}","milestones_url":"https://api.github.com/repos/NotAWeebDev/Misaki/milestones{/number}","notifications_url":"https://api.github.com/repos/NotAWeebDev/Misaki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NotAWeebDev/Misaki/labels{/name}","releases_url":"https://api.github.com/repos/NotAWeebDev/Misaki/releases{/id}","deployments_url":"https://api.github.com/repos/NotAWeebDev/Misaki/deployments","created_at":"2017-12-30T14:38:48Z","updated_at":"2018-02-16T16:48:01Z","pushed_at":"2018-02-18T11:33:04Z","git_url":"git://github.com/NotAWeebDev/Misaki.git","ssh_url":"git@github.com:NotAWeebDev/Misaki.git","clone_url":"https://github.com/NotAWeebDev/Misaki.git","svn_url":"https://github.com/NotAWeebDev/Misaki","homepage":"","size":5346,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":15,"open_issues":4,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64"},"html":{"href":"https://github.com/NotAWeebDev/Misaki/pull/64"},"issue":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/issues/64"},"comments":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/NotAWeebDev/Misaki/statuses/2399b3e6f58ce663d343b8ac597f252a5bd5bc8c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"YoussefElshemi"}}