{"action":"created","comment":{"url":"https://api.github.com/repos/myano/jenni/pulls/comments/38819617","id":38819617,"diff_hunk":"@@ -149,5 +159,13 @@ def query(jenni, input):\n     except KeyError:\n         notify(jenni, input.nick, \"Unknown response from API server\")\n \n+def artist_list(data):\n+    if (len(data) > 1):\n+        artists = '\\x02, \\x02'.join(data[:-1])\n+        artists = artists + '\\x02 and \\x02' + data[-1]","path":"modules/spotify.py","position":54,"original_position":54,"commit_id":"461a020318fd7140a201906fddbfbc17b18bfcf8","original_commit_id":"461a020318fd7140a201906fddbfbc17b18bfcf8","user":{"login":"michealharker","id":939805,"avatar_url":"https://avatars.githubusercontent.com/u/939805?v=3","gravatar_id":"","url":"https://api.github.com/users/michealharker","html_url":"https://github.com/michealharker","followers_url":"https://api.github.com/users/michealharker/followers","following_url":"https://api.github.com/users/michealharker/following{/other_user}","gists_url":"https://api.github.com/users/michealharker/gists{/gist_id}","starred_url":"https://api.github.com/users/michealharker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michealharker/subscriptions","organizations_url":"https://api.github.com/users/michealharker/orgs","repos_url":"https://api.github.com/users/michealharker/repos","events_url":"https://api.github.com/users/michealharker/events{/privacy}","received_events_url":"https://api.github.com/users/michealharker/received_events","type":"User","site_admin":false},"body":"Right now locally I have written it so a string would be like the below example. It would be correct to use instead of the `%s` and relevant ways of formatting the string?\r\n\r\n```python\r\n\"Artist: {0}{1}{0}\".format(\"\\x02\", artist['name'])\r\n```","created_at":"2015-09-06T09:36:44Z","updated_at":"2015-09-06T09:36:44Z","html_url":"https://github.com/myano/jenni/pull/210#discussion_r38819617","pull_request_url":"https://api.github.com/repos/myano/jenni/pulls/210","_links":{"self":{"href":"https://api.github.com/repos/myano/jenni/pulls/comments/38819617"},"html":{"href":"https://github.com/myano/jenni/pull/210#discussion_r38819617"},"pull_request":{"href":"https://api.github.com/repos/myano/jenni/pulls/210"}}},"pull_request":{"url":"https://api.github.com/repos/myano/jenni/pulls/210","id":44289964,"html_url":"https://github.com/myano/jenni/pull/210","diff_url":"https://github.com/myano/jenni/pull/210.diff","patch_url":"https://github.com/myano/jenni/pull/210.patch","issue_url":"https://api.github.com/repos/myano/jenni/issues/210","number":210,"state":"open","locked":false,"title":"Spotify module changes","user":{"login":"michealharker","id":939805,"avatar_url":"https://avatars.githubusercontent.com/u/939805?v=3","gravatar_id":"","url":"https://api.github.com/users/michealharker","html_url":"https://github.com/michealharker","followers_url":"https://api.github.com/users/michealharker/followers","following_url":"https://api.github.com/users/michealharker/following{/other_user}","gists_url":"https://api.github.com/users/michealharker/gists{/gist_id}","starred_url":"https://api.github.com/users/michealharker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michealharker/subscriptions","organizations_url":"https://api.github.com/users/michealharker/orgs","repos_url":"https://api.github.com/users/michealharker/repos","events_url":"https://api.github.com/users/michealharker/events{/privacy}","received_events_url":"https://api.github.com/users/michealharker/received_events","type":"User","site_admin":false},"body":"- Bold information being returned by spotify.\r\n- Return information on one line only.\r\n- Add release year for fun.\r\n- Add availability information for albums, again for fun and trivia.\r\n- Add myself to copyright notice\r\n- Utilises the full list of artists returned from Spotify\r\n- Gramatically correct listing of artists.","created_at":"2015-09-05T20:46:33Z","updated_at":"2015-09-06T09:36:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c9fb7d3aef3ef41e427ce46e558668b8f4a550d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/myano/jenni/pulls/210/commits","review_comments_url":"https://api.github.com/repos/myano/jenni/pulls/210/comments","review_comment_url":"https://api.github.com/repos/myano/jenni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/myano/jenni/issues/210/comments","statuses_url":"https://api.github.com/repos/myano/jenni/statuses/461a020318fd7140a201906fddbfbc17b18bfcf8","head":{"label":"michealharker:spotify-improvements","ref":"spotify-improvements","sha":"461a020318fd7140a201906fddbfbc17b18bfcf8","user":{"login":"michealharker","id":939805,"avatar_url":"https://avatars.githubusercontent.com/u/939805?v=3","gravatar_id":"","url":"https://api.github.com/users/michealharker","html_url":"https://github.com/michealharker","followers_url":"https://api.github.com/users/michealharker/followers","following_url":"https://api.github.com/users/michealharker/following{/other_user}","gists_url":"https://api.github.com/users/michealharker/gists{/gist_id}","starred_url":"https://api.github.com/users/michealharker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michealharker/subscriptions","organizations_url":"https://api.github.com/users/michealharker/orgs","repos_url":"https://api.github.com/users/michealharker/repos","events_url":"https://api.github.com/users/michealharker/events{/privacy}","received_events_url":"https://api.github.com/users/michealharker/received_events","type":"User","site_admin":false},"repo":{"id":41975010,"name":"jenni","full_name":"michealharker/jenni","owner":{"login":"michealharker","id":939805,"avatar_url":"https://avatars.githubusercontent.com/u/939805?v=3","gravatar_id":"","url":"https://api.github.com/users/michealharker","html_url":"https://github.com/michealharker","followers_url":"https://api.github.com/users/michealharker/followers","following_url":"https://api.github.com/users/michealharker/following{/other_user}","gists_url":"https://api.github.com/users/michealharker/gists{/gist_id}","starred_url":"https://api.github.com/users/michealharker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michealharker/subscriptions","organizations_url":"https://api.github.com/users/michealharker/orgs","repos_url":"https://api.github.com/users/michealharker/repos","events_url":"https://api.github.com/users/michealharker/events{/privacy}","received_events_url":"https://api.github.com/users/michealharker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michealharker/jenni","description":"jenni is a python IRC bot maintained and developed by Michael Yanovich. This project was created by Sean B. Palmer.","fork":true,"url":"https://api.github.com/repos/michealharker/jenni","forks_url":"https://api.github.com/repos/michealharker/jenni/forks","keys_url":"https://api.github.com/repos/michealharker/jenni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michealharker/jenni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michealharker/jenni/teams","hooks_url":"https://api.github.com/repos/michealharker/jenni/hooks","issue_events_url":"https://api.github.com/repos/michealharker/jenni/issues/events{/number}","events_url":"https://api.github.com/repos/michealharker/jenni/events","assignees_url":"https://api.github.com/repos/michealharker/jenni/assignees{/user}","branches_url":"https://api.github.com/repos/michealharker/jenni/branches{/branch}","tags_url":"https://api.github.com/repos/michealharker/jenni/tags","blobs_url":"https://api.github.com/repos/michealharker/jenni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michealharker/jenni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michealharker/jenni/git/refs{/sha}","trees_url":"https://api.github.com/repos/michealharker/jenni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michealharker/jenni/statuses/{sha}","languages_url":"https://api.github.com/repos/michealharker/jenni/languages","stargazers_url":"https://api.github.com/repos/michealharker/jenni/stargazers","contributors_url":"https://api.github.com/repos/michealharker/jenni/contributors","subscribers_url":"https://api.github.com/repos/michealharker/jenni/subscribers","subscription_url":"https://api.github.com/repos/michealharker/jenni/subscription","commits_url":"https://api.github.com/repos/michealharker/jenni/commits{/sha}","git_commits_url":"https://api.github.com/repos/michealharker/jenni/git/commits{/sha}","comments_url":"https://api.github.com/repos/michealharker/jenni/comments{/number}","issue_comment_url":"https://api.github.com/repos/michealharker/jenni/issues/comments{/number}","contents_url":"https://api.github.com/repos/michealharker/jenni/contents/{+path}","compare_url":"https://api.github.com/repos/michealharker/jenni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michealharker/jenni/merges","archive_url":"https://api.github.com/repos/michealharker/jenni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michealharker/jenni/downloads","issues_url":"https://api.github.com/repos/michealharker/jenni/issues{/number}","pulls_url":"https://api.github.com/repos/michealharker/jenni/pulls{/number}","milestones_url":"https://api.github.com/repos/michealharker/jenni/milestones{/number}","notifications_url":"https://api.github.com/repos/michealharker/jenni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michealharker/jenni/labels{/name}","releases_url":"https://api.github.com/repos/michealharker/jenni/releases{/id}","created_at":"2015-09-05T20:43:56Z","updated_at":"2015-09-05T20:43:57Z","pushed_at":"2015-09-05T21:14:38Z","git_url":"git://github.com/michealharker/jenni.git","ssh_url":"git@github.com:michealharker/jenni.git","clone_url":"https://github.com/michealharker/jenni.git","svn_url":"https://github.com/michealharker/jenni","homepage":"","size":6237,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"myano:master","ref":"master","sha":"ccb7bf6efc6319df1dd6fc9ac52b8a100f293a2a","user":{"login":"myano","id":166297,"avatar_url":"https://avatars.githubusercontent.com/u/166297?v=3","gravatar_id":"","url":"https://api.github.com/users/myano","html_url":"https://github.com/myano","followers_url":"https://api.github.com/users/myano/followers","following_url":"https://api.github.com/users/myano/following{/other_user}","gists_url":"https://api.github.com/users/myano/gists{/gist_id}","starred_url":"https://api.github.com/users/myano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myano/subscriptions","organizations_url":"https://api.github.com/users/myano/orgs","repos_url":"https://api.github.com/users/myano/repos","events_url":"https://api.github.com/users/myano/events{/privacy}","received_events_url":"https://api.github.com/users/myano/received_events","type":"User","site_admin":false},"repo":{"id":422097,"name":"jenni","full_name":"myano/jenni","owner":{"login":"myano","id":166297,"avatar_url":"https://avatars.githubusercontent.com/u/166297?v=3","gravatar_id":"","url":"https://api.github.com/users/myano","html_url":"https://github.com/myano","followers_url":"https://api.github.com/users/myano/followers","following_url":"https://api.github.com/users/myano/following{/other_user}","gists_url":"https://api.github.com/users/myano/gists{/gist_id}","starred_url":"https://api.github.com/users/myano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myano/subscriptions","organizations_url":"https://api.github.com/users/myano/orgs","repos_url":"https://api.github.com/users/myano/repos","events_url":"https://api.github.com/users/myano/events{/privacy}","received_events_url":"https://api.github.com/users/myano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/myano/jenni","description":"jenni is a python IRC bot maintained and developed by Michael Yanovich. This project was created by Sean B. Palmer.","fork":false,"url":"https://api.github.com/repos/myano/jenni","forks_url":"https://api.github.com/repos/myano/jenni/forks","keys_url":"https://api.github.com/repos/myano/jenni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myano/jenni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myano/jenni/teams","hooks_url":"https://api.github.com/repos/myano/jenni/hooks","issue_events_url":"https://api.github.com/repos/myano/jenni/issues/events{/number}","events_url":"https://api.github.com/repos/myano/jenni/events","assignees_url":"https://api.github.com/repos/myano/jenni/assignees{/user}","branches_url":"https://api.github.com/repos/myano/jenni/branches{/branch}","tags_url":"https://api.github.com/repos/myano/jenni/tags","blobs_url":"https://api.github.com/repos/myano/jenni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myano/jenni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myano/jenni/git/refs{/sha}","trees_url":"https://api.github.com/repos/myano/jenni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myano/jenni/statuses/{sha}","languages_url":"https://api.github.com/repos/myano/jenni/languages","stargazers_url":"https://api.github.com/repos/myano/jenni/stargazers","contributors_url":"https://api.github.com/repos/myano/jenni/contributors","subscribers_url":"https://api.github.com/repos/myano/jenni/subscribers","subscription_url":"https://api.github.com/repos/myano/jenni/subscription","commits_url":"https://api.github.com/repos/myano/jenni/commits{/sha}","git_commits_url":"https://api.github.com/repos/myano/jenni/git/commits{/sha}","comments_url":"https://api.github.com/repos/myano/jenni/comments{/number}","issue_comment_url":"https://api.github.com/repos/myano/jenni/issues/comments{/number}","contents_url":"https://api.github.com/repos/myano/jenni/contents/{+path}","compare_url":"https://api.github.com/repos/myano/jenni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myano/jenni/merges","archive_url":"https://api.github.com/repos/myano/jenni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myano/jenni/downloads","issues_url":"https://api.github.com/repos/myano/jenni/issues{/number}","pulls_url":"https://api.github.com/repos/myano/jenni/pulls{/number}","milestones_url":"https://api.github.com/repos/myano/jenni/milestones{/number}","notifications_url":"https://api.github.com/repos/myano/jenni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myano/jenni/labels{/name}","releases_url":"https://api.github.com/repos/myano/jenni/releases{/id}","created_at":"2009-12-12T01:00:31Z","updated_at":"2015-09-04T13:41:18Z","pushed_at":"2015-09-05T21:14:38Z","git_url":"git://github.com/myano/jenni.git","ssh_url":"git@github.com:myano/jenni.git","clone_url":"https://github.com/myano/jenni.git","svn_url":"https://github.com/myano/jenni","homepage":"","size":6237,"stargazers_count":176,"watchers_count":176,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":40,"forks":91,"open_issues":40,"watchers":176,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/myano/jenni/pulls/210"},"html":{"href":"https://github.com/myano/jenni/pull/210"},"issue":{"href":"https://api.github.com/repos/myano/jenni/issues/210"},"comments":{"href":"https://api.github.com/repos/myano/jenni/issues/210/comments"},"review_comments":{"href":"https://api.github.com/repos/myano/jenni/pulls/210/comments"},"review_comment":{"href":"https://api.github.com/repos/myano/jenni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/myano/jenni/pulls/210/commits"},"statuses":{"href":"https://api.github.com/repos/myano/jenni/statuses/461a020318fd7140a201906fddbfbc17b18bfcf8"}}}}