{"action":"created","comment":{"url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments/205937722","pull_request_review_id":141312015,"id":205937722,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTkzNzcyMg==","diff_hunk":"@@ -0,0 +1,308 @@\n+from uqcsbot import bot, Command\n+import re\n+from uqcsbot.util.status_reacts import loading_status, success_status\n+\n+API_URL = \"https://memegen.link/\"\n+# Many different characters need to be replaced in order to work in url format\n+# See the API_URL for details\n+REPLACEMENTS = {'_': '__', ' ': '_', r'\\\"': \"''\", '-': '--', '?': '~q', '%': '~p', '#': '~h', '/': '~s'}","path":"uqcsbot/scripts/meme.py","position":8,"original_position":8,"commit_id":"316b5799348361b1104f863b67bddd379f165d15","original_commit_id":"316b5799348361b1104f863b67bddd379f165d15","user":{"login":"mubiquity","id":24851062,"node_id":"MDQ6VXNlcjI0ODUxMDYy","avatar_url":"https://avatars1.githubusercontent.com/u/24851062?v=4","gravatar_id":"","url":"https://api.github.com/users/mubiquity","html_url":"https://github.com/mubiquity","followers_url":"https://api.github.com/users/mubiquity/followers","following_url":"https://api.github.com/users/mubiquity/following{/other_user}","gists_url":"https://api.github.com/users/mubiquity/gists{/gist_id}","starred_url":"https://api.github.com/users/mubiquity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mubiquity/subscriptions","organizations_url":"https://api.github.com/users/mubiquity/orgs","repos_url":"https://api.github.com/users/mubiquity/repos","events_url":"https://api.github.com/users/mubiquity/events{/privacy}","received_events_url":"https://api.github.com/users/mubiquity/received_events","type":"User","site_admin":false},"body":"Does that allow custom changes? For instance the api expects forward slashes to be encoded in the url as: ~s","created_at":"2018-07-28T08:58:16Z","updated_at":"2018-07-28T08:58:17Z","html_url":"https://github.com/UQComputingSociety/uqcsbot/pull/347#discussion_r205937722","pull_request_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments/205937722"},"html":{"href":"https://github.com/UQComputingSociety/uqcsbot/pull/347#discussion_r205937722"},"pull_request":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347"}},"in_reply_to_id":205935453},"pull_request":{"url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347","id":204440434,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NDQwNDM0","html_url":"https://github.com/UQComputingSociety/uqcsbot/pull/347","diff_url":"https://github.com/UQComputingSociety/uqcsbot/pull/347.diff","patch_url":"https://github.com/UQComputingSociety/uqcsbot/pull/347.patch","issue_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/347","number":347,"state":"open","locked":false,"title":"Added !meme","user":{"login":"mubiquity","id":24851062,"node_id":"MDQ6VXNlcjI0ODUxMDYy","avatar_url":"https://avatars1.githubusercontent.com/u/24851062?v=4","gravatar_id":"","url":"https://api.github.com/users/mubiquity","html_url":"https://github.com/mubiquity","followers_url":"https://api.github.com/users/mubiquity/followers","following_url":"https://api.github.com/users/mubiquity/following{/other_user}","gists_url":"https://api.github.com/users/mubiquity/gists{/gist_id}","starred_url":"https://api.github.com/users/mubiquity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mubiquity/subscriptions","organizations_url":"https://api.github.com/users/mubiquity/orgs","repos_url":"https://api.github.com/users/mubiquity/repos","events_url":"https://api.github.com/users/mubiquity/events{/privacy}","received_events_url":"https://api.github.com/users/mubiquity/received_events","type":"User","site_admin":false},"body":"Generates a meme based on the input. For instance !meme ants \"Top\" \"Bottom\" produces:\r\n![meme](https://user-images.githubusercontent.com/24851062/43324994-d51170f2-91f8-11e8-84f8-5fafce1bf434.PNG)\r\n\r\nAlso, running !meme names will send a list of all of the allowable names to the users channel. In future UQCS specific memes could be added.\r\n\r\nI don't know why I did this.","created_at":"2018-07-27T14:00:06Z","updated_at":"2018-07-28T08:58:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b409359bd681591b5d779a8127cdb6d6ee32336","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347/commits","review_comments_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347/comments","review_comment_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/347/comments","statuses_url":"https://api.github.com/repos/UQComputingSociety/uqcsbot/statuses/316b5799348361b1104f863b67bddd379f165d15","head":{"label":"mubiquity:meme","ref":"meme","sha":"316b5799348361b1104f863b67bddd379f165d15","user":{"login":"mubiquity","id":24851062,"node_id":"MDQ6VXNlcjI0ODUxMDYy","avatar_url":"https://avatars1.githubusercontent.com/u/24851062?v=4","gravatar_id":"","url":"https://api.github.com/users/mubiquity","html_url":"https://github.com/mubiquity","followers_url":"https://api.github.com/users/mubiquity/followers","following_url":"https://api.github.com/users/mubiquity/following{/other_user}","gists_url":"https://api.github.com/users/mubiquity/gists{/gist_id}","starred_url":"https://api.github.com/users/mubiquity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mubiquity/subscriptions","organizations_url":"https://api.github.com/users/mubiquity/orgs","repos_url":"https://api.github.com/users/mubiquity/repos","events_url":"https://api.github.com/users/mubiquity/events{/privacy}","received_events_url":"https://api.github.com/users/mubiquity/received_events","type":"User","site_admin":false},"repo":{"id":123794277,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM3OTQyNzc=","name":"uqcsbot","full_name":"mubiquity/uqcsbot","owner":{"login":"mubiquity","id":24851062,"node_id":"MDQ6VXNlcjI0ODUxMDYy","avatar_url":"https://avatars1.githubusercontent.com/u/24851062?v=4","gravatar_id":"","url":"https://api.github.com/users/mubiquity","html_url":"https://github.com/mubiquity","followers_url":"https://api.github.com/users/mubiquity/followers","following_url":"https://api.github.com/users/mubiquity/following{/other_user}","gists_url":"https://api.github.com/users/mubiquity/gists{/gist_id}","starred_url":"https://api.github.com/users/mubiquity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mubiquity/subscriptions","organizations_url":"https://api.github.com/users/mubiquity/orgs","repos_url":"https://api.github.com/users/mubiquity/repos","events_url":"https://api.github.com/users/mubiquity/events{/privacy}","received_events_url":"https://api.github.com/users/mubiquity/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mubiquity/uqcsbot","description":"UQCSbot: our friendly little Slack bot","fork":true,"url":"https://api.github.com/repos/mubiquity/uqcsbot","forks_url":"https://api.github.com/repos/mubiquity/uqcsbot/forks","keys_url":"https://api.github.com/repos/mubiquity/uqcsbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mubiquity/uqcsbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mubiquity/uqcsbot/teams","hooks_url":"https://api.github.com/repos/mubiquity/uqcsbot/hooks","issue_events_url":"https://api.github.com/repos/mubiquity/uqcsbot/issues/events{/number}","events_url":"https://api.github.com/repos/mubiquity/uqcsbot/events","assignees_url":"https://api.github.com/repos/mubiquity/uqcsbot/assignees{/user}","branches_url":"https://api.github.com/repos/mubiquity/uqcsbot/branches{/branch}","tags_url":"https://api.github.com/repos/mubiquity/uqcsbot/tags","blobs_url":"https://api.github.com/repos/mubiquity/uqcsbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mubiquity/uqcsbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mubiquity/uqcsbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mubiquity/uqcsbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mubiquity/uqcsbot/statuses/{sha}","languages_url":"https://api.github.com/repos/mubiquity/uqcsbot/languages","stargazers_url":"https://api.github.com/repos/mubiquity/uqcsbot/stargazers","contributors_url":"https://api.github.com/repos/mubiquity/uqcsbot/contributors","subscribers_url":"https://api.github.com/repos/mubiquity/uqcsbot/subscribers","subscription_url":"https://api.github.com/repos/mubiquity/uqcsbot/subscription","commits_url":"https://api.github.com/repos/mubiquity/uqcsbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mubiquity/uqcsbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mubiquity/uqcsbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mubiquity/uqcsbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mubiquity/uqcsbot/contents/{+path}","compare_url":"https://api.github.com/repos/mubiquity/uqcsbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mubiquity/uqcsbot/merges","archive_url":"https://api.github.com/repos/mubiquity/uqcsbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mubiquity/uqcsbot/downloads","issues_url":"https://api.github.com/repos/mubiquity/uqcsbot/issues{/number}","pulls_url":"https://api.github.com/repos/mubiquity/uqcsbot/pulls{/number}","milestones_url":"https://api.github.com/repos/mubiquity/uqcsbot/milestones{/number}","notifications_url":"https://api.github.com/repos/mubiquity/uqcsbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mubiquity/uqcsbot/labels{/name}","releases_url":"https://api.github.com/repos/mubiquity/uqcsbot/releases{/id}","deployments_url":"https://api.github.com/repos/mubiquity/uqcsbot/deployments","created_at":"2018-03-04T14:04:03Z","updated_at":"2018-03-04T14:04:05Z","pushed_at":"2018-07-27T13:54:13Z","git_url":"git://github.com/mubiquity/uqcsbot.git","ssh_url":"git@github.com:mubiquity/uqcsbot.git","clone_url":"https://github.com/mubiquity/uqcsbot.git","svn_url":"https://github.com/mubiquity/uqcsbot","homepage":"https://slack.uqcs.org.au","size":696,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"python-rewrite"}},"base":{"label":"UQComputingSociety:master","ref":"master","sha":"6498fcee5c6cb8aebbb4a95023b68647bd64ce91","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","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},"private":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-07-12T11:13:18Z","pushed_at":"2018-07-27T14:00:07Z","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":691,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":30,"open_issues":37,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347"},"html":{"href":"https://github.com/UQComputingSociety/uqcsbot/pull/347"},"issue":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/347"},"comments":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/issues/347/comments"},"review_comments":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347/comments"},"review_comment":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/pulls/347/commits"},"statuses":{"href":"https://api.github.com/repos/UQComputingSociety/uqcsbot/statuses/316b5799348361b1104f863b67bddd379f165d15"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mubiquity"}}