{"action":"created","comment":{"url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments/228754123","pull_request_review_id":169098153,"id":228754123,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODc1NDEyMw==","diff_hunk":"@@ -0,0 +1,75 @@\n+import requests\n+import feedparser\n+from urllib.parse import quote\n+from uqcsbot import bot, Command\n+from uqcsbot.utils.command_utils import loading_status\n+\n+\n+# HTTP Endpoints\n+XKCD_BASE_URL = \"https://xkcd.com/\"\n+XKCD_RSS_URL = \"https://xkcd.com/rss.xml\"\n+RELEVANT_XKCD_URL = 'https://relevantxkcd.appspot.com/process?action=xkcd&query='\n+\n+\n+def get_by_id(comic_number: int) -> str:\n+    \"\"\"\n+    Gets an xkcd comic based on its unique ID/sequence number.\n+    :param comic_number: the ID number of the xkcd comic to retrieve.\n+    :return: a response containing either a comic URL or an error message.\n+    \"\"\"\n+    if comic_number < 0:\n+        return \"Invalid xkcd ID, it must be a positive integer.\"","path":"uqcsbot/scripts/xkcd.py","position":21,"original_position":21,"commit_id":"a1ff6b170f32274b8eaf3c5d1d5657584d146916","original_commit_id":"9ba57583e87c9f1c23b52ed0ca56915b075068b6","user":{"login":"nicklambourne","id":9084563,"node_id":"MDQ6VXNlcjkwODQ1NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9084563?v=4","gravatar_id":"","url":"https://api.github.com/users/nicklambourne","html_url":"https://github.com/nicklambourne","followers_url":"https://api.github.com/users/nicklambourne/followers","following_url":"https://api.github.com/users/nicklambourne/following{/other_user}","gists_url":"https://api.github.com/users/nicklambourne/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklambourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklambourne/subscriptions","organizations_url":"https://api.github.com/users/nicklambourne/orgs","repos_url":"https://api.github.com/users/nicklambourne/repos","events_url":"https://api.github.com/users/nicklambourne/events{/privacy}","received_events_url":"https://api.github.com/users/nicklambourne/received_events","type":"User","site_admin":false},"body":"Right, my bad. I completely misunderstood what you were getting at. Fixed.","created_at":"2018-10-28T15:56:23Z","updated_at":"2018-10-28T15:56:23Z","html_url":"https://github.com/UQComputingSociety/uqcsbot/pull/388#discussion_r228754123","pull_request_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments/228754123"},"html":{"href":"https://github.com/UQComputingSociety/uqcsbot/pull/388#discussion_r228754123"},"pull_request":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388"}},"in_reply_to_id":228752457},"pull_request":{"url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388","id":226373679,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MzczNjc5","html_url":"https://github.com/UQComputingSociety/uqcsbot/pull/388","diff_url":"https://github.com/UQComputingSociety/uqcsbot/pull/388.diff","patch_url":"https://github.com/UQComputingSociety/uqcsbot/pull/388.patch","issue_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/388","number":388,"state":"open","locked":false,"title":"added xkcd","user":{"login":"nicklambourne","id":9084563,"node_id":"MDQ6VXNlcjkwODQ1NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9084563?v=4","gravatar_id":"","url":"https://api.github.com/users/nicklambourne","html_url":"https://github.com/nicklambourne","followers_url":"https://api.github.com/users/nicklambourne/followers","following_url":"https://api.github.com/users/nicklambourne/following{/other_user}","gists_url":"https://api.github.com/users/nicklambourne/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklambourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklambourne/subscriptions","organizations_url":"https://api.github.com/users/nicklambourne/orgs","repos_url":"https://api.github.com/users/nicklambourne/repos","events_url":"https://api.github.com/users/nicklambourne/events{/privacy}","received_events_url":"https://api.github.com/users/nicklambourne/received_events","type":"User","site_admin":false},"body":"<img width=\"545\" alt=\"screen shot 2018-10-29 at 12 45 11 am\" src=\"https://user-images.githubusercontent.com/9084563/47617819-24077780-db17-11e8-8692-979a61bee5d9.png\">\r\n\r\nalso fixed up jobs wording","created_at":"2018-10-28T15:08:39Z","updated_at":"2018-10-28T15:56:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad75078735116ded6545fc1dda08e7683a9d5ad5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388/commits","review_comments_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388/comments","review_comment_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/388/comments","statuses_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/statuses/a1ff6b170f32274b8eaf3c5d1d5657584d146916","head":{"label":"nicklambourne:xkcd","ref":"xkcd","sha":"a1ff6b170f32274b8eaf3c5d1d5657584d146916","user":{"login":"nicklambourne","id":9084563,"node_id":"MDQ6VXNlcjkwODQ1NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9084563?v=4","gravatar_id":"","url":"https://api.github.com/users/nicklambourne","html_url":"https://github.com/nicklambourne","followers_url":"https://api.github.com/users/nicklambourne/followers","following_url":"https://api.github.com/users/nicklambourne/following{/other_user}","gists_url":"https://api.github.com/users/nicklambourne/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklambourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklambourne/subscriptions","organizations_url":"https://api.github.com/users/nicklambourne/orgs","repos_url":"https://api.github.com/users/nicklambourne/repos","events_url":"https://api.github.com/users/nicklambourne/events{/privacy}","received_events_url":"https://api.github.com/users/nicklambourne/received_events","type":"User","site_admin":false},"repo":{"id":108951032,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg5NTEwMzI=","name":"uqcsbot","full_name":"nicklambourne/uqcsbot","private":false,"owner":{"login":"nicklambourne","id":9084563,"node_id":"MDQ6VXNlcjkwODQ1NjM=","avatar_url":"https://avatars2.githubusercontent.com/u/9084563?v=4","gravatar_id":"","url":"https://api.github.com/users/nicklambourne","html_url":"https://github.com/nicklambourne","followers_url":"https://api.github.com/users/nicklambourne/followers","following_url":"https://api.github.com/users/nicklambourne/following{/other_user}","gists_url":"https://api.github.com/users/nicklambourne/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklambourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklambourne/subscriptions","organizations_url":"https://api.github.com/users/nicklambourne/orgs","repos_url":"https://api.github.com/users/nicklambourne/repos","events_url":"https://api.github.com/users/nicklambourne/events{/privacy}","received_events_url":"https://api.github.com/users/nicklambourne/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nicklambourne/uqcsbot","description":"UQCSbot: our friendly little Slack bot","fork":true,"url":"https://api.github.com/repos/nicklambourne/uqcsbot","forks_url":"https://api.github.com/repos/nicklambourne/uqcsbot/forks","keys_url":"https://api.github.com/repos/nicklambourne/uqcsbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicklambourne/uqcsbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicklambourne/uqcsbot/teams","hooks_url":"https://api.github.com/repos/nicklambourne/uqcsbot/hooks","issue_events_url":"https://api.github.com/repos/nicklambourne/uqcsbot/issues/events{/number}","events_url":"https://api.github.com/repos/nicklambourne/uqcsbot/events","assignees_url":"https://api.github.com/repos/nicklambourne/uqcsbot/assignees{/user}","branches_url":"https://api.github.com/repos/nicklambourne/uqcsbot/branches{/branch}","tags_url":"https://api.github.com/repos/nicklambourne/uqcsbot/tags","blobs_url":"https://api.github.com/repos/nicklambourne/uqcsbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicklambourne/uqcsbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicklambourne/uqcsbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicklambourne/uqcsbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicklambourne/uqcsbot/statuses/{sha}","languages_url":"https://api.github.com/repos/nicklambourne/uqcsbot/languages","stargazers_url":"https://api.github.com/repos/nicklambourne/uqcsbot/stargazers","contributors_url":"https://api.github.com/repos/nicklambourne/uqcsbot/contributors","subscribers_url":"https://api.github.com/repos/nicklambourne/uqcsbot/subscribers","subscription_url":"https://api.github.com/repos/nicklambourne/uqcsbot/subscription","commits_url":"https://api.github.com/repos/nicklambourne/uqcsbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicklambourne/uqcsbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicklambourne/uqcsbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicklambourne/uqcsbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicklambourne/uqcsbot/contents/{+path}","compare_url":"https://api.github.com/repos/nicklambourne/uqcsbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicklambourne/uqcsbot/merges","archive_url":"https://api.github.com/repos/nicklambourne/uqcsbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicklambourne/uqcsbot/downloads","issues_url":"https://api.github.com/repos/nicklambourne/uqcsbot/issues{/number}","pulls_url":"https://api.github.com/repos/nicklambourne/uqcsbot/pulls{/number}","milestones_url":"https://api.github.com/repos/nicklambourne/uqcsbot/milestones{/number}","notifications_url":"https://api.github.com/repos/nicklambourne/uqcsbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicklambourne/uqcsbot/labels{/name}","releases_url":"https://api.github.com/repos/nicklambourne/uqcsbot/releases{/id}","deployments_url":"https://api.github.com/repos/nicklambourne/uqcsbot/deployments","created_at":"2017-10-31T05:47:59Z","updated_at":"2018-10-28T15:01:53Z","pushed_at":"2018-10-28T15:56:18Z","git_url":"git://github.com/nicklambourne/uqcsbot.git","ssh_url":"git@github.com:nicklambourne/uqcsbot.git","clone_url":"https://github.com/nicklambourne/uqcsbot.git","svn_url":"https://github.com/nicklambourne/uqcsbot","homepage":"https://slack.uqcs.org.au","size":801,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"UQComputingSociety:master","ref":"master","sha":"c9fc28899bdef205dd53dc5ffd86767f48ebed4d","user":{"login":"UQComputingSociety","id":639595,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzOTU5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/639595?v=4","gravatar_id":"","url":"https://api.github.com/users/UQComputingSociety","html_url":"https://github.com/UQComputingSociety","followers_url":"https://api.github.com/users/UQComputingSociety/followers","following_url":"https://api.github.com/users/UQComputingSociety/following{/other_user}","gists_url":"https://api.github.com/users/UQComputingSociety/gists{/gist_id}","starred_url":"https://api.github.com/users/UQComputingSociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UQComputingSociety/subscriptions","organizations_url":"https://api.github.com/users/UQComputingSociety/orgs","repos_url":"https://api.github.com/users/UQComputingSociety/repos","events_url":"https://api.github.com/users/UQComputingSociety/events{/privacy}","received_events_url":"https://api.github.com/users/UQComputingSociety/received_events","type":"Organization","site_admin":false},"repo":{"id":46210727,"node_id":"MDEwOlJlcG9zaXRvcnk0NjIxMDcyNw==","name":"uqcsbot","full_name":"UQComputingSociety/uqcsbot","private":false,"owner":{"login":"UQComputingSociety","id":639595,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzOTU5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/639595?v=4","gravatar_id":"","url":"https://api.github.com/users/UQComputingSociety","html_url":"https://github.com/UQComputingSociety","followers_url":"https://api.github.com/users/UQComputingSociety/followers","following_url":"https://api.github.com/users/UQComputingSociety/following{/other_user}","gists_url":"https://api.github.com/users/UQComputingSociety/gists{/gist_id}","starred_url":"https://api.github.com/users/UQComputingSociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UQComputingSociety/subscriptions","organizations_url":"https://api.github.com/users/UQComputingSociety/orgs","repos_url":"https://api.github.com/users/UQComputingSociety/repos","events_url":"https://api.github.com/users/UQComputingSociety/events{/privacy}","received_events_url":"https://api.github.com/users/UQComputingSociety/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/UQComputingSociety/uqcsbot","description":"UQCSbot: our friendly little Slack bot","fork":false,"url":"https://api.github.com/repos/UQComputingSociety/uqcsbot","forks_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/forks","keys_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/teams","hooks_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/hooks","issue_events_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/events{/number}","events_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/events","assignees_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/assignees{/user}","branches_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/branches{/branch}","tags_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/tags","blobs_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/statuses/{sha}","languages_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/languages","stargazers_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/stargazers","contributors_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/contributors","subscribers_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/subscribers","subscription_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/subscription","commits_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/contents/{+path}","compare_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/merges","archive_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/downloads","issues_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues{/number}","pulls_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls{/number}","milestones_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/milestones{/number}","notifications_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/labels{/name}","releases_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/releases{/id}","deployments_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/deployments","created_at":"2015-11-15T08:49:04Z","updated_at":"2018-10-28T15:51:38Z","pushed_at":"2018-10-28T15:56:19Z","git_url":"git://github.com/UQComputingSociety/uqcsbot.git","ssh_url":"git@github.com:UQComputingSociety/uqcsbot.git","clone_url":"https://github.com/UQComputingSociety/uqcsbot.git","svn_url":"https://github.com/UQComputingSociety/uqcsbot","homepage":"https://slack.uqcs.org.au","size":777,"stargazers_count":35,"watchers_count":35,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":40,"open_issues":40,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388"},"html":{"href":"https://github.com/UQComputingSociety/uqcsbot/pull/388"},"issue":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/388"},"comments":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/388/comments"},"review_comments":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388/comments"},"review_comment":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/388/commits"},"statuses":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/statuses/a1ff6b170f32274b8eaf3c5d1d5657584d146916"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nicklambourne"}}