{"action":"created","comment":{"url":"https://api.github.com/repos/azin634/djdiscord/pulls/comments/77826711","id":77826711,"diff_hunk":"@@ -0,0 +1,40 @@\n+from os.path import splitext, basename\n+import glob\n+\n+class Library:\n+  def __init__(self, directory):\n+    self.library = []\n+    self.music_dir = directory\n+    self.list_size = 20","path":"library.py","position":8,"original_position":8,"commit_id":"3a5a0db802212356c5d0dcfa08b1884c36c5f458","original_commit_id":"3a5a0db802212356c5d0dcfa08b1884c36c5f458","user":{"login":"azin634","id":1095004,"avatar_url":"https://avatars.githubusercontent.com/u/1095004?v=3","gravatar_id":"","url":"https://api.github.com/users/azin634","html_url":"https://github.com/azin634","followers_url":"https://api.github.com/users/azin634/followers","following_url":"https://api.github.com/users/azin634/following{/other_user}","gists_url":"https://api.github.com/users/azin634/gists{/gist_id}","starred_url":"https://api.github.com/users/azin634/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azin634/subscriptions","organizations_url":"https://api.github.com/users/azin634/orgs","repos_url":"https://api.github.com/users/azin634/repos","events_url":"https://api.github.com/users/azin634/events{/privacy}","received_events_url":"https://api.github.com/users/azin634/received_events","type":"User","site_admin":false},"body":"this should be a constant instead","created_at":"2016-09-07T13:58:05Z","updated_at":"2016-09-07T13:58:05Z","html_url":"https://github.com/azin634/djdiscord/pull/17#discussion_r77826711","pull_request_url":"https://api.github.com/repos/azin634/djdiscord/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/azin634/djdiscord/pulls/comments/77826711"},"html":{"href":"https://github.com/azin634/djdiscord/pull/17#discussion_r77826711"},"pull_request":{"href":"https://api.github.com/repos/azin634/djdiscord/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/azin634/djdiscord/pulls/17","id":84234803,"html_url":"https://github.com/azin634/djdiscord/pull/17","diff_url":"https://github.com/azin634/djdiscord/pull/17.diff","patch_url":"https://github.com/azin634/djdiscord/pull/17.patch","issue_url":"https://api.github.com/repos/azin634/djdiscord/issues/17","number":17,"state":"open","locked":false,"title":"Iterator/Page find for !lib and !list","user":{"login":"willi-on-fire","id":21992853,"avatar_url":"https://avatars.githubusercontent.com/u/21992853?v=3","gravatar_id":"","url":"https://api.github.com/users/willi-on-fire","html_url":"https://github.com/willi-on-fire","followers_url":"https://api.github.com/users/willi-on-fire/followers","following_url":"https://api.github.com/users/willi-on-fire/following{/other_user}","gists_url":"https://api.github.com/users/willi-on-fire/gists{/gist_id}","starred_url":"https://api.github.com/users/willi-on-fire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willi-on-fire/subscriptions","organizations_url":"https://api.github.com/users/willi-on-fire/orgs","repos_url":"https://api.github.com/users/willi-on-fire/repos","events_url":"https://api.github.com/users/willi-on-fire/events{/privacy}","received_events_url":"https://api.github.com/users/willi-on-fire/received_events","type":"User","site_admin":false},"body":"New Iterator/Page tracker for !lib and !list command\r\n\r\nChanged lib_to_string() and list_to_string() to reflect the page listing changes\r\n\r\nAdded a page size for bot to list the # of songs per page\r\n\r\nTook out bot says from playlist and library\r\nlist size constant exists inside playlist and library\r\n\r\nChanged shownext and showprev to nextsong and prevsong\r\n\r\n!shutup and !speakfool is added. Not implemented because bot not chatting on each new song without manual activation\r\n\r\nThere is a play bug for asian chars in file name with the playlist.\r\n\r\nchanged skip to be similar to prev to dodge bug\r\nmanual advancing works now. old skip also had play bug.","created_at":"2016-09-07T04:25:39Z","updated_at":"2016-09-07T13:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9a28b45fdbbf7b0a7b58d097d09018e96aa1e3e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/azin634/djdiscord/pulls/17/commits","review_comments_url":"https://api.github.com/repos/azin634/djdiscord/pulls/17/comments","review_comment_url":"https://api.github.com/repos/azin634/djdiscord/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azin634/djdiscord/issues/17/comments","statuses_url":"https://api.github.com/repos/azin634/djdiscord/statuses/3a5a0db802212356c5d0dcfa08b1884c36c5f458","head":{"label":"azin634:Will","ref":"Will","sha":"3a5a0db802212356c5d0dcfa08b1884c36c5f458","user":{"login":"azin634","id":1095004,"avatar_url":"https://avatars.githubusercontent.com/u/1095004?v=3","gravatar_id":"","url":"https://api.github.com/users/azin634","html_url":"https://github.com/azin634","followers_url":"https://api.github.com/users/azin634/followers","following_url":"https://api.github.com/users/azin634/following{/other_user}","gists_url":"https://api.github.com/users/azin634/gists{/gist_id}","starred_url":"https://api.github.com/users/azin634/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azin634/subscriptions","organizations_url":"https://api.github.com/users/azin634/orgs","repos_url":"https://api.github.com/users/azin634/repos","events_url":"https://api.github.com/users/azin634/events{/privacy}","received_events_url":"https://api.github.com/users/azin634/received_events","type":"User","site_admin":false},"repo":{"id":67378489,"name":"djdiscord","full_name":"azin634/djdiscord","owner":{"login":"azin634","id":1095004,"avatar_url":"https://avatars.githubusercontent.com/u/1095004?v=3","gravatar_id":"","url":"https://api.github.com/users/azin634","html_url":"https://github.com/azin634","followers_url":"https://api.github.com/users/azin634/followers","following_url":"https://api.github.com/users/azin634/following{/other_user}","gists_url":"https://api.github.com/users/azin634/gists{/gist_id}","starred_url":"https://api.github.com/users/azin634/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azin634/subscriptions","organizations_url":"https://api.github.com/users/azin634/orgs","repos_url":"https://api.github.com/users/azin634/repos","events_url":"https://api.github.com/users/azin634/events{/privacy}","received_events_url":"https://api.github.com/users/azin634/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/azin634/djdiscord","description":null,"fork":false,"url":"https://api.github.com/repos/azin634/djdiscord","forks_url":"https://api.github.com/repos/azin634/djdiscord/forks","keys_url":"https://api.github.com/repos/azin634/djdiscord/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azin634/djdiscord/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azin634/djdiscord/teams","hooks_url":"https://api.github.com/repos/azin634/djdiscord/hooks","issue_events_url":"https://api.github.com/repos/azin634/djdiscord/issues/events{/number}","events_url":"https://api.github.com/repos/azin634/djdiscord/events","assignees_url":"https://api.github.com/repos/azin634/djdiscord/assignees{/user}","branches_url":"https://api.github.com/repos/azin634/djdiscord/branches{/branch}","tags_url":"https://api.github.com/repos/azin634/djdiscord/tags","blobs_url":"https://api.github.com/repos/azin634/djdiscord/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azin634/djdiscord/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azin634/djdiscord/git/refs{/sha}","trees_url":"https://api.github.com/repos/azin634/djdiscord/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azin634/djdiscord/statuses/{sha}","languages_url":"https://api.github.com/repos/azin634/djdiscord/languages","stargazers_url":"https://api.github.com/repos/azin634/djdiscord/stargazers","contributors_url":"https://api.github.com/repos/azin634/djdiscord/contributors","subscribers_url":"https://api.github.com/repos/azin634/djdiscord/subscribers","subscription_url":"https://api.github.com/repos/azin634/djdiscord/subscription","commits_url":"https://api.github.com/repos/azin634/djdiscord/commits{/sha}","git_commits_url":"https://api.github.com/repos/azin634/djdiscord/git/commits{/sha}","comments_url":"https://api.github.com/repos/azin634/djdiscord/comments{/number}","issue_comment_url":"https://api.github.com/repos/azin634/djdiscord/issues/comments{/number}","contents_url":"https://api.github.com/repos/azin634/djdiscord/contents/{+path}","compare_url":"https://api.github.com/repos/azin634/djdiscord/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azin634/djdiscord/merges","archive_url":"https://api.github.com/repos/azin634/djdiscord/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azin634/djdiscord/downloads","issues_url":"https://api.github.com/repos/azin634/djdiscord/issues{/number}","pulls_url":"https://api.github.com/repos/azin634/djdiscord/pulls{/number}","milestones_url":"https://api.github.com/repos/azin634/djdiscord/milestones{/number}","notifications_url":"https://api.github.com/repos/azin634/djdiscord/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azin634/djdiscord/labels{/name}","releases_url":"https://api.github.com/repos/azin634/djdiscord/releases{/id}","deployments_url":"https://api.github.com/repos/azin634/djdiscord/deployments","created_at":"2016-09-05T01:34:38Z","updated_at":"2016-09-07T00:33:37Z","pushed_at":"2016-09-07T04:25:40Z","git_url":"git://github.com/azin634/djdiscord.git","ssh_url":"git@github.com:azin634/djdiscord.git","clone_url":"https://github.com/azin634/djdiscord.git","svn_url":"https://github.com/azin634/djdiscord","homepage":null,"size":57,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"azin634:master","ref":"master","sha":"832b74d7da34c5a768954e1c2dc4a672842f8265","user":{"login":"azin634","id":1095004,"avatar_url":"https://avatars.githubusercontent.com/u/1095004?v=3","gravatar_id":"","url":"https://api.github.com/users/azin634","html_url":"https://github.com/azin634","followers_url":"https://api.github.com/users/azin634/followers","following_url":"https://api.github.com/users/azin634/following{/other_user}","gists_url":"https://api.github.com/users/azin634/gists{/gist_id}","starred_url":"https://api.github.com/users/azin634/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azin634/subscriptions","organizations_url":"https://api.github.com/users/azin634/orgs","repos_url":"https://api.github.com/users/azin634/repos","events_url":"https://api.github.com/users/azin634/events{/privacy}","received_events_url":"https://api.github.com/users/azin634/received_events","type":"User","site_admin":false},"repo":{"id":67378489,"name":"djdiscord","full_name":"azin634/djdiscord","owner":{"login":"azin634","id":1095004,"avatar_url":"https://avatars.githubusercontent.com/u/1095004?v=3","gravatar_id":"","url":"https://api.github.com/users/azin634","html_url":"https://github.com/azin634","followers_url":"https://api.github.com/users/azin634/followers","following_url":"https://api.github.com/users/azin634/following{/other_user}","gists_url":"https://api.github.com/users/azin634/gists{/gist_id}","starred_url":"https://api.github.com/users/azin634/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azin634/subscriptions","organizations_url":"https://api.github.com/users/azin634/orgs","repos_url":"https://api.github.com/users/azin634/repos","events_url":"https://api.github.com/users/azin634/events{/privacy}","received_events_url":"https://api.github.com/users/azin634/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/azin634/djdiscord","description":null,"fork":false,"url":"https://api.github.com/repos/azin634/djdiscord","forks_url":"https://api.github.com/repos/azin634/djdiscord/forks","keys_url":"https://api.github.com/repos/azin634/djdiscord/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azin634/djdiscord/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azin634/djdiscord/teams","hooks_url":"https://api.github.com/repos/azin634/djdiscord/hooks","issue_events_url":"https://api.github.com/repos/azin634/djdiscord/issues/events{/number}","events_url":"https://api.github.com/repos/azin634/djdiscord/events","assignees_url":"https://api.github.com/repos/azin634/djdiscord/assignees{/user}","branches_url":"https://api.github.com/repos/azin634/djdiscord/branches{/branch}","tags_url":"https://api.github.com/repos/azin634/djdiscord/tags","blobs_url":"https://api.github.com/repos/azin634/djdiscord/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azin634/djdiscord/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azin634/djdiscord/git/refs{/sha}","trees_url":"https://api.github.com/repos/azin634/djdiscord/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azin634/djdiscord/statuses/{sha}","languages_url":"https://api.github.com/repos/azin634/djdiscord/languages","stargazers_url":"https://api.github.com/repos/azin634/djdiscord/stargazers","contributors_url":"https://api.github.com/repos/azin634/djdiscord/contributors","subscribers_url":"https://api.github.com/repos/azin634/djdiscord/subscribers","subscription_url":"https://api.github.com/repos/azin634/djdiscord/subscription","commits_url":"https://api.github.com/repos/azin634/djdiscord/commits{/sha}","git_commits_url":"https://api.github.com/repos/azin634/djdiscord/git/commits{/sha}","comments_url":"https://api.github.com/repos/azin634/djdiscord/comments{/number}","issue_comment_url":"https://api.github.com/repos/azin634/djdiscord/issues/comments{/number}","contents_url":"https://api.github.com/repos/azin634/djdiscord/contents/{+path}","compare_url":"https://api.github.com/repos/azin634/djdiscord/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azin634/djdiscord/merges","archive_url":"https://api.github.com/repos/azin634/djdiscord/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azin634/djdiscord/downloads","issues_url":"https://api.github.com/repos/azin634/djdiscord/issues{/number}","pulls_url":"https://api.github.com/repos/azin634/djdiscord/pulls{/number}","milestones_url":"https://api.github.com/repos/azin634/djdiscord/milestones{/number}","notifications_url":"https://api.github.com/repos/azin634/djdiscord/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azin634/djdiscord/labels{/name}","releases_url":"https://api.github.com/repos/azin634/djdiscord/releases{/id}","deployments_url":"https://api.github.com/repos/azin634/djdiscord/deployments","created_at":"2016-09-05T01:34:38Z","updated_at":"2016-09-07T00:33:37Z","pushed_at":"2016-09-07T04:25:40Z","git_url":"git://github.com/azin634/djdiscord.git","ssh_url":"git@github.com:azin634/djdiscord.git","clone_url":"https://github.com/azin634/djdiscord.git","svn_url":"https://github.com/azin634/djdiscord","homepage":null,"size":57,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/azin634/djdiscord/pulls/17"},"html":{"href":"https://github.com/azin634/djdiscord/pull/17"},"issue":{"href":"https://api.github.com/repos/azin634/djdiscord/issues/17"},"comments":{"href":"https://api.github.com/repos/azin634/djdiscord/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/azin634/djdiscord/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/azin634/djdiscord/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azin634/djdiscord/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/azin634/djdiscord/statuses/3a5a0db802212356c5d0dcfa08b1884c36c5f458"}}}}
{"actor":{"display_login":"azin634"}}