{"action":"created","comment":{"url":"https://api.github.com/repos/sentriz/steely/pulls/comments/166342817","pull_request_review_id":94004399,"id":166342817,"diff_hunk":"@@ -0,0 +1,101 @@\n+import argparse\n+from utils import scan_plugins_dir, load_plugin\n+\n+class FBChatMessageMock:\n+    def __init__(self, message):\n+        self.text = message\n+\n+\n+class FBChatMock:\n+    def __init__(self, prev_messages):\n+        # List of messages, oldest to newest.\n+        # This list will be updated with new messages so anything holding a \n+        # reference to it will be up to date.\n+        self.prev_mes = prev_messages\n+        # This is a seperate list for isolating the output of the plugin.","path":"steely/local_steely.py","position":15,"original_position":15,"commit_id":"0e010c57275692e0cfeadb95b8695500a39257a6","original_commit_id":"0e010c57275692e0cfeadb95b8695500a39257a6","user":{"login":"byxor","id":14977217,"avatar_url":"https://avatars3.githubusercontent.com/u/14977217?v=4","gravatar_id":"","url":"https://api.github.com/users/byxor","html_url":"https://github.com/byxor","followers_url":"https://api.github.com/users/byxor/followers","following_url":"https://api.github.com/users/byxor/following{/other_user}","gists_url":"https://api.github.com/users/byxor/gists{/gist_id}","starred_url":"https://api.github.com/users/byxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxor/subscriptions","organizations_url":"https://api.github.com/users/byxor/orgs","repos_url":"https://api.github.com/users/byxor/repos","events_url":"https://api.github.com/users/byxor/events{/privacy}","received_events_url":"https://api.github.com/users/byxor/received_events","type":"User","site_admin":false},"body":"separate*","created_at":"2018-02-06T15:40:08Z","updated_at":"2018-02-06T15:46:14Z","html_url":"https://github.com/sentriz/steely/pull/153#discussion_r166342817","pull_request_url":"https://api.github.com/repos/sentriz/steely/pulls/153","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sentriz/steely/pulls/comments/166342817"},"html":{"href":"https://github.com/sentriz/steely/pull/153#discussion_r166342817"},"pull_request":{"href":"https://api.github.com/repos/sentriz/steely/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/sentriz/steely/pulls/153","id":167155724,"html_url":"https://github.com/sentriz/steely/pull/153","diff_url":"https://github.com/sentriz/steely/pull/153.diff","patch_url":"https://github.com/sentriz/steely/pull/153.patch","issue_url":"https://api.github.com/repos/sentriz/steely/issues/153","number":153,"state":"open","locked":false,"title":"Add initial version of local steely","user":{"login":"CianLR","id":11367575,"avatar_url":"https://avatars0.githubusercontent.com/u/11367575?v=4","gravatar_id":"","url":"https://api.github.com/users/CianLR","html_url":"https://github.com/CianLR","followers_url":"https://api.github.com/users/CianLR/followers","following_url":"https://api.github.com/users/CianLR/following{/other_user}","gists_url":"https://api.github.com/users/CianLR/gists{/gist_id}","starred_url":"https://api.github.com/users/CianLR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CianLR/subscriptions","organizations_url":"https://api.github.com/users/CianLR/orgs","repos_url":"https://api.github.com/users/CianLR/repos","events_url":"https://api.github.com/users/CianLR/events{/privacy}","received_events_url":"https://api.github.com/users/CianLR/received_events","type":"User","site_admin":false},"body":"This adds a script to emulate messenger in order to test plugins locally.\r\nSo far fetchThreadMessages and sendMessage are the only operations supported but this should cover most plugins.\r\n\r\nIt has support for loading all the plugins but I recommend manually specifying the ones you want.\r\n```\r\nclr@clr-ThinkPad-T470:~/Desktop/steely/steely$ python3.6 local_steely.py -p mock.py b.py\r\n>>> Hey babe\r\n>>> .mock\r\nhey bABe\r\n>>> .b\r\nhey 🅱️A🅱️e\r\n```","created_at":"2018-02-05T14:18:59Z","updated_at":"2018-02-06T15:46:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"555e87aa00b725b4c79b1bbb6b4638abf082e5d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/sentriz/steely/pulls/153/commits","review_comments_url":"https://api.github.com/repos/sentriz/steely/pulls/153/comments","review_comment_url":"https://api.github.com/repos/sentriz/steely/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sentriz/steely/issues/153/comments","statuses_url":"https://api.github.com/repos/sentriz/steely/statuses/0e010c57275692e0cfeadb95b8695500a39257a6","head":{"label":"CianLR:plugintester","ref":"plugintester","sha":"0e010c57275692e0cfeadb95b8695500a39257a6","user":{"login":"CianLR","id":11367575,"avatar_url":"https://avatars0.githubusercontent.com/u/11367575?v=4","gravatar_id":"","url":"https://api.github.com/users/CianLR","html_url":"https://github.com/CianLR","followers_url":"https://api.github.com/users/CianLR/followers","following_url":"https://api.github.com/users/CianLR/following{/other_user}","gists_url":"https://api.github.com/users/CianLR/gists{/gist_id}","starred_url":"https://api.github.com/users/CianLR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CianLR/subscriptions","organizations_url":"https://api.github.com/users/CianLR/orgs","repos_url":"https://api.github.com/users/CianLR/repos","events_url":"https://api.github.com/users/CianLR/events{/privacy}","received_events_url":"https://api.github.com/users/CianLR/received_events","type":"User","site_admin":false},"repo":{"id":100848701,"name":"steely","full_name":"CianLR/steely","owner":{"login":"CianLR","id":11367575,"avatar_url":"https://avatars0.githubusercontent.com/u/11367575?v=4","gravatar_id":"","url":"https://api.github.com/users/CianLR","html_url":"https://github.com/CianLR","followers_url":"https://api.github.com/users/CianLR/followers","following_url":"https://api.github.com/users/CianLR/following{/other_user}","gists_url":"https://api.github.com/users/CianLR/gists{/gist_id}","starred_url":"https://api.github.com/users/CianLR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CianLR/subscriptions","organizations_url":"https://api.github.com/users/CianLR/orgs","repos_url":"https://api.github.com/users/CianLR/repos","events_url":"https://api.github.com/users/CianLR/events{/privacy}","received_events_url":"https://api.github.com/users/CianLR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CianLR/steely","description":"a python 3+ facebook bot","fork":true,"url":"https://api.github.com/repos/CianLR/steely","forks_url":"https://api.github.com/repos/CianLR/steely/forks","keys_url":"https://api.github.com/repos/CianLR/steely/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CianLR/steely/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CianLR/steely/teams","hooks_url":"https://api.github.com/repos/CianLR/steely/hooks","issue_events_url":"https://api.github.com/repos/CianLR/steely/issues/events{/number}","events_url":"https://api.github.com/repos/CianLR/steely/events","assignees_url":"https://api.github.com/repos/CianLR/steely/assignees{/user}","branches_url":"https://api.github.com/repos/CianLR/steely/branches{/branch}","tags_url":"https://api.github.com/repos/CianLR/steely/tags","blobs_url":"https://api.github.com/repos/CianLR/steely/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CianLR/steely/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CianLR/steely/git/refs{/sha}","trees_url":"https://api.github.com/repos/CianLR/steely/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CianLR/steely/statuses/{sha}","languages_url":"https://api.github.com/repos/CianLR/steely/languages","stargazers_url":"https://api.github.com/repos/CianLR/steely/stargazers","contributors_url":"https://api.github.com/repos/CianLR/steely/contributors","subscribers_url":"https://api.github.com/repos/CianLR/steely/subscribers","subscription_url":"https://api.github.com/repos/CianLR/steely/subscription","commits_url":"https://api.github.com/repos/CianLR/steely/commits{/sha}","git_commits_url":"https://api.github.com/repos/CianLR/steely/git/commits{/sha}","comments_url":"https://api.github.com/repos/CianLR/steely/comments{/number}","issue_comment_url":"https://api.github.com/repos/CianLR/steely/issues/comments{/number}","contents_url":"https://api.github.com/repos/CianLR/steely/contents/{+path}","compare_url":"https://api.github.com/repos/CianLR/steely/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CianLR/steely/merges","archive_url":"https://api.github.com/repos/CianLR/steely/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CianLR/steely/downloads","issues_url":"https://api.github.com/repos/CianLR/steely/issues{/number}","pulls_url":"https://api.github.com/repos/CianLR/steely/pulls{/number}","milestones_url":"https://api.github.com/repos/CianLR/steely/milestones{/number}","notifications_url":"https://api.github.com/repos/CianLR/steely/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CianLR/steely/labels{/name}","releases_url":"https://api.github.com/repos/CianLR/steely/releases{/id}","deployments_url":"https://api.github.com/repos/CianLR/steely/deployments","created_at":"2017-08-20T08:35:41Z","updated_at":"2017-08-20T08:35:43Z","pushed_at":"2018-02-06T15:36:11Z","git_url":"git://github.com/CianLR/steely.git","ssh_url":"git@github.com:CianLR/steely.git","clone_url":"https://github.com/CianLR/steely.git","svn_url":"https://github.com/CianLR/steely","homepage":null,"size":519,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sentriz:master","ref":"master","sha":"8f7cfc4af9cd9b05e1c47370bdb7b0c0197d6090","user":{"login":"sentriz","id":6832539,"avatar_url":"https://avatars0.githubusercontent.com/u/6832539?v=4","gravatar_id":"","url":"https://api.github.com/users/sentriz","html_url":"https://github.com/sentriz","followers_url":"https://api.github.com/users/sentriz/followers","following_url":"https://api.github.com/users/sentriz/following{/other_user}","gists_url":"https://api.github.com/users/sentriz/gists{/gist_id}","starred_url":"https://api.github.com/users/sentriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sentriz/subscriptions","organizations_url":"https://api.github.com/users/sentriz/orgs","repos_url":"https://api.github.com/users/sentriz/repos","events_url":"https://api.github.com/users/sentriz/events{/privacy}","received_events_url":"https://api.github.com/users/sentriz/received_events","type":"User","site_admin":false},"repo":{"id":95832464,"name":"steely","full_name":"sentriz/steely","owner":{"login":"sentriz","id":6832539,"avatar_url":"https://avatars0.githubusercontent.com/u/6832539?v=4","gravatar_id":"","url":"https://api.github.com/users/sentriz","html_url":"https://github.com/sentriz","followers_url":"https://api.github.com/users/sentriz/followers","following_url":"https://api.github.com/users/sentriz/following{/other_user}","gists_url":"https://api.github.com/users/sentriz/gists{/gist_id}","starred_url":"https://api.github.com/users/sentriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sentriz/subscriptions","organizations_url":"https://api.github.com/users/sentriz/orgs","repos_url":"https://api.github.com/users/sentriz/repos","events_url":"https://api.github.com/users/sentriz/events{/privacy}","received_events_url":"https://api.github.com/users/sentriz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sentriz/steely","description":"a python 3.6 facebook bot","fork":false,"url":"https://api.github.com/repos/sentriz/steely","forks_url":"https://api.github.com/repos/sentriz/steely/forks","keys_url":"https://api.github.com/repos/sentriz/steely/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sentriz/steely/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sentriz/steely/teams","hooks_url":"https://api.github.com/repos/sentriz/steely/hooks","issue_events_url":"https://api.github.com/repos/sentriz/steely/issues/events{/number}","events_url":"https://api.github.com/repos/sentriz/steely/events","assignees_url":"https://api.github.com/repos/sentriz/steely/assignees{/user}","branches_url":"https://api.github.com/repos/sentriz/steely/branches{/branch}","tags_url":"https://api.github.com/repos/sentriz/steely/tags","blobs_url":"https://api.github.com/repos/sentriz/steely/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sentriz/steely/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sentriz/steely/git/refs{/sha}","trees_url":"https://api.github.com/repos/sentriz/steely/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sentriz/steely/statuses/{sha}","languages_url":"https://api.github.com/repos/sentriz/steely/languages","stargazers_url":"https://api.github.com/repos/sentriz/steely/stargazers","contributors_url":"https://api.github.com/repos/sentriz/steely/contributors","subscribers_url":"https://api.github.com/repos/sentriz/steely/subscribers","subscription_url":"https://api.github.com/repos/sentriz/steely/subscription","commits_url":"https://api.github.com/repos/sentriz/steely/commits{/sha}","git_commits_url":"https://api.github.com/repos/sentriz/steely/git/commits{/sha}","comments_url":"https://api.github.com/repos/sentriz/steely/comments{/number}","issue_comment_url":"https://api.github.com/repos/sentriz/steely/issues/comments{/number}","contents_url":"https://api.github.com/repos/sentriz/steely/contents/{+path}","compare_url":"https://api.github.com/repos/sentriz/steely/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sentriz/steely/merges","archive_url":"https://api.github.com/repos/sentriz/steely/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sentriz/steely/downloads","issues_url":"https://api.github.com/repos/sentriz/steely/issues{/number}","pulls_url":"https://api.github.com/repos/sentriz/steely/pulls{/number}","milestones_url":"https://api.github.com/repos/sentriz/steely/milestones{/number}","notifications_url":"https://api.github.com/repos/sentriz/steely/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sentriz/steely/labels{/name}","releases_url":"https://api.github.com/repos/sentriz/steely/releases{/id}","deployments_url":"https://api.github.com/repos/sentriz/steely/deployments","created_at":"2017-06-30T00:44:31Z","updated_at":"2018-01-31T21:57:07Z","pushed_at":"2018-02-06T15:36:12Z","git_url":"git://github.com/sentriz/steely.git","ssh_url":"git@github.com:sentriz/steely.git","clone_url":"https://github.com/sentriz/steely.git","svn_url":"https://github.com/sentriz/steely","homepage":"","size":522,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":13,"open_issues":9,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sentriz/steely/pulls/153"},"html":{"href":"https://github.com/sentriz/steely/pull/153"},"issue":{"href":"https://api.github.com/repos/sentriz/steely/issues/153"},"comments":{"href":"https://api.github.com/repos/sentriz/steely/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/sentriz/steely/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/sentriz/steely/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sentriz/steely/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/sentriz/steely/statuses/0e010c57275692e0cfeadb95b8695500a39257a6"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"byxor"}}