{"action":"created","comment":{"url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/comments/215727629","pull_request_review_id":153058602,"id":215727629,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTcyNzYyOQ==","diff_hunk":"@@ -69,40 +74,131 @@ def get_role(server_roles, target_id):\n             await member.remove_roles(role, reason=\"Updating CC permissions\")\r\n         if role.id == config.suspended:\r\n             await member.remove_roles(role, reason=\"Updating CC permissions\")\r\n+        if role.id == config.participant:\r\n+            await member.remove_roles(role, reason=\"Updating CC permissions\")\r\n+\r\n+already_quoted = []\r\n+\r\n+@client.event\r\n+async def on_reaction_add(reaction, user):\r\n+    if user != client.user and db_shop.is_shop(reaction.message.id):\r\n+        # For shop\r\n+        bought_item = await shop.find_item_from_key(\"emoji\", reaction.emoji, reaction.message.id)\r\n+        await reaction.message.remove_reaction(reaction.emoji, user)\r\n+        await reaction.message.channel.send(\"{} just bought {} for {} {}!\".format(user.mention, bought_item[\"name\"], bought_item[\"price\"], shop.find_shop_by_id(reaction.message.id)[\"currency\"]))\r\n+    elif user != client.user and reaction.emoji == \"⭐\":\r\n+        # For Quoting\r\n+        stats.increment_stat(\"quotes_submitted\", 1)\r\n+        if reaction.message.id in already_quoted:\r\n+            return\r\n+        already_quoted.append(reaction.message.id)\r\n+        botspam_channel = client.get_channel(int(config.bot_spam))\r\n+        quote_channel = client.get_channel(int(config.quotes))\r\n+        request_embed = discord.Embed(title=\"Quote Request [Pending]\", description=\"Message from {} in <#{}> requested for quote by {}:\".format(reaction.message.author.mention,reaction.message.channel.id,user.mention), color=0x0000ff)\r\n+        request_embed.add_field(name=\"Message Content\", value=\"```\" + reaction.message.content.replace('`', '`\\u200B') + \"```\")\r\n+        request_embed.set_footer(text=\"React with ✅ to accept or ❎ to deny.\")\r\n+        request = await botspam_channel.send(embed=request_embed)\r\n+        await request.add_reaction(\"✅\")\r\n+        await request.add_reaction(\"❎\")\r\n+\r\n+        def check(reaction, user):\r\n+            return config.game_master in [y.id for y in user.roles] and reaction.message.id == request.id\r\n+\r\n+        try:\r\n+            reaction_confirm, user = await client.wait_for('reaction_add', timeout=172800, check=check)\r\n+        except asyncio.TimeoutError:\r\n+            request_embed = discord.Embed(title=\"Quote Request [Timed Out]\", description=\"Message from {} in <#{}> requested for quote by {}:\".format(reaction.message.author.mention,reaction.message.channel.id,user.mention), color=0xff0000)\r\n+            request_embed.add_field(name=\"Message Content\", value=\"```\" + reaction.message.content.replace('`', '`\\u200B') + \"```\")\r\n+            await request.edit(embed=request_embed)\r\n+            await reaction_confirm.message.clear_reactions()\r\n+        else:\r\n+            if reaction_confirm.emoji == \"✅\":\r\n+                request_embed = discord.Embed(title=\"Quote Request [Approved By {}]\".format(user), description=\"Message from {} in <#{}> requested for quote by {}:\".format(reaction.message.author.mention,reaction.message.channel.id,user.mention), color=0x00ff00)\r\n+                request_embed.add_field(name=\"Message Content\", value=\"```\" + reaction.message.content.replace('`', '`\\u200B') + \"```\")\r\n+                await request.edit(embed=request_embed)\r\n+                await reaction_confirm.message.clear_reactions()\r\n+                quote_embed = discord.Embed(description=reaction.message.content, color=0x0000ff)\r\n+                quote_embed.set_author(name=str(reaction.message.author), icon_url=reaction.message.author.avatar_url)\r\n+                quote_embed.set_footer(text=\"{} | {} (UTC)\".format(reaction.message.guild.name, reaction.message.created_at.strftime('%d %B %H:%M:%S')))\r\n+                await quote_channel.send(embed=quote_embed)\r\n+            if reaction_confirm.emoji == \"❎\":\r\n+                stats.increment_stat(\"quotes_denied\", 1)\r\n+                request_embed = discord.Embed(title=\"Quote Request [Denied By {}]\".format(user), description=\"Message from {} in <#{}> requested for quote by {}:\".format(reaction.message.author.mention,reaction.message.channel.id,user.mention), color=0xff0000)\r\n+                request_embed.add_field(name=\"Message Content\", value=\"```\" + reaction.message.content.replace('`', '`\\u200B') + \"```\")\r\n+                await request.edit(embed=request_embed)\r\n+                await reaction_confirm.message.clear_reactions()\r\n+\r\n+\r\n+# Whenever a message is edited\r\n+@client.event\r\n+async def on_message_edit(before, after):\r\n+    if before.author == client.user: # We don't want to respond to our own edits\r\n+        return\r\n+    if before.content == after.content: # Ensure it wasn't just a pin\r\n+        return\r\n+\r\n+    if before.id != after.id:\r\n+        db.add_trash_message(after.id,after.channel.id)\r","path":"main_ghost.py","position":136,"original_position":139,"commit_id":"0356e19cb73f1e4c1644eb95380843fe4eb75487","original_commit_id":"3a7c1c723bc0298298d256388f2e5f7f0100a0ac","user":{"login":"Randium","id":33968886,"node_id":"MDQ6VXNlcjMzOTY4ODg2","avatar_url":"https://avatars2.githubusercontent.com/u/33968886?v=4","gravatar_id":"","url":"https://api.github.com/users/Randium","html_url":"https://github.com/Randium","followers_url":"https://api.github.com/users/Randium/followers","following_url":"https://api.github.com/users/Randium/following{/other_user}","gists_url":"https://api.github.com/users/Randium/gists{/gist_id}","starred_url":"https://api.github.com/users/Randium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Randium/subscriptions","organizations_url":"https://api.github.com/users/Randium/orgs","repos_url":"https://api.github.com/users/Randium/repos","events_url":"https://api.github.com/users/Randium/events{/privacy}","received_events_url":"https://api.github.com/users/Randium/received_events","type":"User","site_admin":false},"body":"I mean, if it doesn't, then okay. 😛 But I wanted to make sure.","created_at":"2018-09-06T18:16:23Z","updated_at":"2018-09-06T18:16:23Z","html_url":"https://github.com/werewolves-devs/Werewolf_Bot/pull/134#discussion_r215727629","pull_request_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/comments/215727629"},"html":{"href":"https://github.com/werewolves-devs/Werewolf_Bot/pull/134#discussion_r215727629"},"pull_request":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134"}},"in_reply_to_id":215669422},"pull_request":{"url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134","id":212815765,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyODE1NzY1","html_url":"https://github.com/werewolves-devs/Werewolf_Bot/pull/134","diff_url":"https://github.com/werewolves-devs/Werewolf_Bot/pull/134.diff","patch_url":"https://github.com/werewolves-devs/Werewolf_Bot/pull/134.patch","issue_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues/134","number":134,"state":"open","locked":false,"title":"Add Ghost Bot to repository","user":{"login":"Randium","id":33968886,"node_id":"MDQ6VXNlcjMzOTY4ODg2","avatar_url":"https://avatars2.githubusercontent.com/u/33968886?v=4","gravatar_id":"","url":"https://api.github.com/users/Randium","html_url":"https://github.com/Randium","followers_url":"https://api.github.com/users/Randium/followers","following_url":"https://api.github.com/users/Randium/following{/other_user}","gists_url":"https://api.github.com/users/Randium/gists{/gist_id}","starred_url":"https://api.github.com/users/Randium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Randium/subscriptions","organizations_url":"https://api.github.com/users/Randium/orgs","repos_url":"https://api.github.com/users/Randium/repos","events_url":"https://api.github.com/users/Randium/events{/privacy}","received_events_url":"https://api.github.com/users/Randium/received_events","type":"User","site_admin":false},"body":"Yes - it's happening! We're adding a third bot to the framework!","created_at":"2018-09-03T20:35:40Z","updated_at":"2018-09-06T18:16:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b48cdf0e58584a0856748d70055a71c9d86e9eb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134/commits","review_comments_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134/comments","review_comment_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues/134/comments","statuses_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/statuses/0356e19cb73f1e4c1644eb95380843fe4eb75487","head":{"label":"Randium:ghost-bot","ref":"ghost-bot","sha":"0356e19cb73f1e4c1644eb95380843fe4eb75487","user":{"login":"Randium","id":33968886,"node_id":"MDQ6VXNlcjMzOTY4ODg2","avatar_url":"https://avatars2.githubusercontent.com/u/33968886?v=4","gravatar_id":"","url":"https://api.github.com/users/Randium","html_url":"https://github.com/Randium","followers_url":"https://api.github.com/users/Randium/followers","following_url":"https://api.github.com/users/Randium/following{/other_user}","gists_url":"https://api.github.com/users/Randium/gists{/gist_id}","starred_url":"https://api.github.com/users/Randium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Randium/subscriptions","organizations_url":"https://api.github.com/users/Randium/orgs","repos_url":"https://api.github.com/users/Randium/repos","events_url":"https://api.github.com/users/Randium/events{/privacy}","received_events_url":"https://api.github.com/users/Randium/received_events","type":"User","site_admin":false},"repo":{"id":146987701,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5ODc3MDE=","name":"Werewolf_Bot","full_name":"Randium/Werewolf_Bot","owner":{"login":"Randium","id":33968886,"node_id":"MDQ6VXNlcjMzOTY4ODg2","avatar_url":"https://avatars2.githubusercontent.com/u/33968886?v=4","gravatar_id":"","url":"https://api.github.com/users/Randium","html_url":"https://github.com/Randium","followers_url":"https://api.github.com/users/Randium/followers","following_url":"https://api.github.com/users/Randium/following{/other_user}","gists_url":"https://api.github.com/users/Randium/gists{/gist_id}","starred_url":"https://api.github.com/users/Randium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Randium/subscriptions","organizations_url":"https://api.github.com/users/Randium/orgs","repos_url":"https://api.github.com/users/Randium/repos","events_url":"https://api.github.com/users/Randium/events{/privacy}","received_events_url":"https://api.github.com/users/Randium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Randium/Werewolf_Bot","description":"Randium's test bot","fork":true,"url":"https://api.github.com/repos/Randium/Werewolf_Bot","forks_url":"https://api.github.com/repos/Randium/Werewolf_Bot/forks","keys_url":"https://api.github.com/repos/Randium/Werewolf_Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Randium/Werewolf_Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Randium/Werewolf_Bot/teams","hooks_url":"https://api.github.com/repos/Randium/Werewolf_Bot/hooks","issue_events_url":"https://api.github.com/repos/Randium/Werewolf_Bot/issues/events{/number}","events_url":"https://api.github.com/repos/Randium/Werewolf_Bot/events","assignees_url":"https://api.github.com/repos/Randium/Werewolf_Bot/assignees{/user}","branches_url":"https://api.github.com/repos/Randium/Werewolf_Bot/branches{/branch}","tags_url":"https://api.github.com/repos/Randium/Werewolf_Bot/tags","blobs_url":"https://api.github.com/repos/Randium/Werewolf_Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Randium/Werewolf_Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Randium/Werewolf_Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Randium/Werewolf_Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Randium/Werewolf_Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Randium/Werewolf_Bot/languages","stargazers_url":"https://api.github.com/repos/Randium/Werewolf_Bot/stargazers","contributors_url":"https://api.github.com/repos/Randium/Werewolf_Bot/contributors","subscribers_url":"https://api.github.com/repos/Randium/Werewolf_Bot/subscribers","subscription_url":"https://api.github.com/repos/Randium/Werewolf_Bot/subscription","commits_url":"https://api.github.com/repos/Randium/Werewolf_Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Randium/Werewolf_Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Randium/Werewolf_Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Randium/Werewolf_Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Randium/Werewolf_Bot/contents/{+path}","compare_url":"https://api.github.com/repos/Randium/Werewolf_Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Randium/Werewolf_Bot/merges","archive_url":"https://api.github.com/repos/Randium/Werewolf_Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Randium/Werewolf_Bot/downloads","issues_url":"https://api.github.com/repos/Randium/Werewolf_Bot/issues{/number}","pulls_url":"https://api.github.com/repos/Randium/Werewolf_Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Randium/Werewolf_Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Randium/Werewolf_Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Randium/Werewolf_Bot/labels{/name}","releases_url":"https://api.github.com/repos/Randium/Werewolf_Bot/releases{/id}","deployments_url":"https://api.github.com/repos/Randium/Werewolf_Bot/deployments","created_at":"2018-09-01T10:04:06Z","updated_at":"2018-09-03T20:00:05Z","pushed_at":"2018-09-06T18:12:41Z","git_url":"git://github.com/Randium/Werewolf_Bot.git","ssh_url":"git@github.com:Randium/Werewolf_Bot.git","clone_url":"https://github.com/Randium/Werewolf_Bot.git","svn_url":"https://github.com/Randium/Werewolf_Bot","homepage":"","size":1025,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"werewolves-devs:master","ref":"master","sha":"0b59261b0fabbdd5f53b9671103419fdb70a4e2f","user":{"login":"werewolves-devs","id":39315706,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzE1NzA2","avatar_url":"https://avatars3.githubusercontent.com/u/39315706?v=4","gravatar_id":"","url":"https://api.github.com/users/werewolves-devs","html_url":"https://github.com/werewolves-devs","followers_url":"https://api.github.com/users/werewolves-devs/followers","following_url":"https://api.github.com/users/werewolves-devs/following{/other_user}","gists_url":"https://api.github.com/users/werewolves-devs/gists{/gist_id}","starred_url":"https://api.github.com/users/werewolves-devs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/werewolves-devs/subscriptions","organizations_url":"https://api.github.com/users/werewolves-devs/orgs","repos_url":"https://api.github.com/users/werewolves-devs/repos","events_url":"https://api.github.com/users/werewolves-devs/events{/privacy}","received_events_url":"https://api.github.com/users/werewolves-devs/received_events","type":"Organization","site_admin":false},"repo":{"id":133569015,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM1NjkwMTU=","name":"Werewolf_Bot","full_name":"werewolves-devs/Werewolf_Bot","owner":{"login":"werewolves-devs","id":39315706,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzE1NzA2","avatar_url":"https://avatars3.githubusercontent.com/u/39315706?v=4","gravatar_id":"","url":"https://api.github.com/users/werewolves-devs","html_url":"https://github.com/werewolves-devs","followers_url":"https://api.github.com/users/werewolves-devs/followers","following_url":"https://api.github.com/users/werewolves-devs/following{/other_user}","gists_url":"https://api.github.com/users/werewolves-devs/gists{/gist_id}","starred_url":"https://api.github.com/users/werewolves-devs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/werewolves-devs/subscriptions","organizations_url":"https://api.github.com/users/werewolves-devs/orgs","repos_url":"https://api.github.com/users/werewolves-devs/repos","events_url":"https://api.github.com/users/werewolves-devs/events{/privacy}","received_events_url":"https://api.github.com/users/werewolves-devs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/werewolves-devs/Werewolf_Bot","description":"Randium's test bot","fork":false,"url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot","forks_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/forks","keys_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/teams","hooks_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/hooks","issue_events_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues/events{/number}","events_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/events","assignees_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/assignees{/user}","branches_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/branches{/branch}","tags_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/tags","blobs_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/languages","stargazers_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/stargazers","contributors_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/contributors","subscribers_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/subscribers","subscription_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/subscription","commits_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/contents/{+path}","compare_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/merges","archive_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/downloads","issues_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues{/number}","pulls_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/labels{/name}","releases_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/releases{/id}","deployments_url":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/deployments","created_at":"2018-05-15T20:21:32Z","updated_at":"2018-09-03T20:35:09Z","pushed_at":"2018-09-06T18:12:43Z","git_url":"git://github.com/werewolves-devs/Werewolf_Bot.git","ssh_url":"git@github.com:werewolves-devs/Werewolf_Bot.git","clone_url":"https://github.com/werewolves-devs/Werewolf_Bot.git","svn_url":"https://github.com/werewolves-devs/Werewolf_Bot","homepage":"","size":990,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":8,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134"},"html":{"href":"https://github.com/werewolves-devs/Werewolf_Bot/pull/134"},"issue":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues/134"},"comments":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/werewolves-devs/Werewolf_Bot/statuses/0356e19cb73f1e4c1644eb95380843fe4eb75487"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Randium"}}