{"action":"created","comment":{"url":"https://api.github.com/repos/ButlerBot/butler/pulls/comments/42862532","id":42862532,"diff_hunk":"@@ -0,0 +1,9 @@\n+defmodule Butler.Plugins.Cowsay do\n+  use Butler.Plugin","path":"lib/butler/plugins/cowsay.ex","position":2,"original_position":2,"commit_id":"f7408e642ebdb52fc2fc03abac57bea88dfdddd5","original_commit_id":"f7408e642ebdb52fc2fc03abac57bea88dfdddd5","user":{"login":"bbrock25","id":2653377,"avatar_url":"https://avatars.githubusercontent.com/u/2653377?v=3","gravatar_id":"","url":"https://api.github.com/users/bbrock25","html_url":"https://github.com/bbrock25","followers_url":"https://api.github.com/users/bbrock25/followers","following_url":"https://api.github.com/users/bbrock25/following{/other_user}","gists_url":"https://api.github.com/users/bbrock25/gists{/gist_id}","starred_url":"https://api.github.com/users/bbrock25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbrock25/subscriptions","organizations_url":"https://api.github.com/users/bbrock25/orgs","repos_url":"https://api.github.com/users/bbrock25/repos","events_url":"https://api.github.com/users/bbrock25/events{/privacy}","received_events_url":"https://api.github.com/users/bbrock25/received_events","type":"User","site_admin":false},"body":"can we publish the butler plugin api to hex so that external plugins can just require it?","created_at":"2015-10-23T13:10:08Z","updated_at":"2015-10-23T13:10:08Z","html_url":"https://github.com/ButlerBot/butler/pull/29#discussion_r42862532","pull_request_url":"https://api.github.com/repos/ButlerBot/butler/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/ButlerBot/butler/pulls/comments/42862532"},"html":{"href":"https://github.com/ButlerBot/butler/pull/29#discussion_r42862532"},"pull_request":{"href":"https://api.github.com/repos/ButlerBot/butler/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/ButlerBot/butler/pulls/29","id":46858468,"html_url":"https://github.com/ButlerBot/butler/pull/29","diff_url":"https://github.com/ButlerBot/butler/pull/29.diff","patch_url":"https://github.com/ButlerBot/butler/pull/29.patch","issue_url":"https://api.github.com/repos/ButlerBot/butler/issues/29","number":29,"state":"open","locked":false,"title":"Spike/plugin macro api","user":{"login":"keathley","id":1642095,"avatar_url":"https://avatars.githubusercontent.com/u/1642095?v=3","gravatar_id":"","url":"https://api.github.com/users/keathley","html_url":"https://github.com/keathley","followers_url":"https://api.github.com/users/keathley/followers","following_url":"https://api.github.com/users/keathley/following{/other_user}","gists_url":"https://api.github.com/users/keathley/gists{/gist_id}","starred_url":"https://api.github.com/users/keathley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keathley/subscriptions","organizations_url":"https://api.github.com/users/keathley/orgs","repos_url":"https://api.github.com/users/keathley/repos","events_url":"https://api.github.com/users/keathley/events{/privacy}","received_events_url":"https://api.github.com/users/keathley/received_events","type":"User","site_admin":false},"body":"Working out the details for the new regex based plugin api.\r\n\r\nI'm doing most of the work with the `respond` and `hear` macros in the Butler.Plugin module.\r\n\r\nI'd still like to revisit the way that each plugin is called from the bot. We've talked about moving away from GenEvent, which I still think might be a possibility. I'm also not sure that we really need the `Bot` module to function as a process. I'm really beginning to think that its just a bottleneck. I do like the api that it provides but I'm not sure that we couldn't just call the plugins directly. Especially since there really isn't state that the bot needs to keep track of. I could be wrong about that as well.\r\n\r\nThere are definitely going to be issues with the Task solution. But I just thought that I would give it a try. If you think it makes more sense to use the GenEvent api then just let me know and I can take a look at it.\r\n\r\nAlso yay for tests.","created_at":"2015-10-06T03:09:35Z","updated_at":"2015-10-23T13:10:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d282f83c7393fe81086e3475681464f323f020d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ButlerBot/butler/pulls/29/commits","review_comments_url":"https://api.github.com/repos/ButlerBot/butler/pulls/29/comments","review_comment_url":"https://api.github.com/repos/ButlerBot/butler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ButlerBot/butler/issues/29/comments","statuses_url":"https://api.github.com/repos/ButlerBot/butler/statuses/f7408e642ebdb52fc2fc03abac57bea88dfdddd5","head":{"label":"ButlerBot:spike/plugin-macro-api","ref":"spike/plugin-macro-api","sha":"f7408e642ebdb52fc2fc03abac57bea88dfdddd5","user":{"login":"ButlerBot","id":13906771,"avatar_url":"https://avatars.githubusercontent.com/u/13906771?v=3","gravatar_id":"","url":"https://api.github.com/users/ButlerBot","html_url":"https://github.com/ButlerBot","followers_url":"https://api.github.com/users/ButlerBot/followers","following_url":"https://api.github.com/users/ButlerBot/following{/other_user}","gists_url":"https://api.github.com/users/ButlerBot/gists{/gist_id}","starred_url":"https://api.github.com/users/ButlerBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButlerBot/subscriptions","organizations_url":"https://api.github.com/users/ButlerBot/orgs","repos_url":"https://api.github.com/users/ButlerBot/repos","events_url":"https://api.github.com/users/ButlerBot/events{/privacy}","received_events_url":"https://api.github.com/users/ButlerBot/received_events","type":"Organization","site_admin":false},"repo":{"id":39537725,"name":"butler","full_name":"ButlerBot/butler","owner":{"login":"ButlerBot","id":13906771,"avatar_url":"https://avatars.githubusercontent.com/u/13906771?v=3","gravatar_id":"","url":"https://api.github.com/users/ButlerBot","html_url":"https://github.com/ButlerBot","followers_url":"https://api.github.com/users/ButlerBot/followers","following_url":"https://api.github.com/users/ButlerBot/following{/other_user}","gists_url":"https://api.github.com/users/ButlerBot/gists{/gist_id}","starred_url":"https://api.github.com/users/ButlerBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButlerBot/subscriptions","organizations_url":"https://api.github.com/users/ButlerBot/orgs","repos_url":"https://api.github.com/users/ButlerBot/repos","events_url":"https://api.github.com/users/ButlerBot/events{/privacy}","received_events_url":"https://api.github.com/users/ButlerBot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ButlerBot/butler","description":"An elixir powered robot","fork":false,"url":"https://api.github.com/repos/ButlerBot/butler","forks_url":"https://api.github.com/repos/ButlerBot/butler/forks","keys_url":"https://api.github.com/repos/ButlerBot/butler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ButlerBot/butler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ButlerBot/butler/teams","hooks_url":"https://api.github.com/repos/ButlerBot/butler/hooks","issue_events_url":"https://api.github.com/repos/ButlerBot/butler/issues/events{/number}","events_url":"https://api.github.com/repos/ButlerBot/butler/events","assignees_url":"https://api.github.com/repos/ButlerBot/butler/assignees{/user}","branches_url":"https://api.github.com/repos/ButlerBot/butler/branches{/branch}","tags_url":"https://api.github.com/repos/ButlerBot/butler/tags","blobs_url":"https://api.github.com/repos/ButlerBot/butler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ButlerBot/butler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ButlerBot/butler/git/refs{/sha}","trees_url":"https://api.github.com/repos/ButlerBot/butler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ButlerBot/butler/statuses/{sha}","languages_url":"https://api.github.com/repos/ButlerBot/butler/languages","stargazers_url":"https://api.github.com/repos/ButlerBot/butler/stargazers","contributors_url":"https://api.github.com/repos/ButlerBot/butler/contributors","subscribers_url":"https://api.github.com/repos/ButlerBot/butler/subscribers","subscription_url":"https://api.github.com/repos/ButlerBot/butler/subscription","commits_url":"https://api.github.com/repos/ButlerBot/butler/commits{/sha}","git_commits_url":"https://api.github.com/repos/ButlerBot/butler/git/commits{/sha}","comments_url":"https://api.github.com/repos/ButlerBot/butler/comments{/number}","issue_comment_url":"https://api.github.com/repos/ButlerBot/butler/issues/comments{/number}","contents_url":"https://api.github.com/repos/ButlerBot/butler/contents/{+path}","compare_url":"https://api.github.com/repos/ButlerBot/butler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ButlerBot/butler/merges","archive_url":"https://api.github.com/repos/ButlerBot/butler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ButlerBot/butler/downloads","issues_url":"https://api.github.com/repos/ButlerBot/butler/issues{/number}","pulls_url":"https://api.github.com/repos/ButlerBot/butler/pulls{/number}","milestones_url":"https://api.github.com/repos/ButlerBot/butler/milestones{/number}","notifications_url":"https://api.github.com/repos/ButlerBot/butler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ButlerBot/butler/labels{/name}","releases_url":"https://api.github.com/repos/ButlerBot/butler/releases{/id}","created_at":"2015-07-23T00:53:00Z","updated_at":"2015-10-03T16:49:52Z","pushed_at":"2015-10-23T05:56:46Z","git_url":"git://github.com/ButlerBot/butler.git","ssh_url":"git@github.com:ButlerBot/butler.git","clone_url":"https://github.com/ButlerBot/butler.git","svn_url":"https://github.com/ButlerBot/butler","homepage":"","size":334,"stargazers_count":3,"watchers_count":3,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":3,"default_branch":"master"}},"base":{"label":"ButlerBot:master","ref":"master","sha":"baa0264149bde0d73f86c20ec9d0b934f15ee300","user":{"login":"ButlerBot","id":13906771,"avatar_url":"https://avatars.githubusercontent.com/u/13906771?v=3","gravatar_id":"","url":"https://api.github.com/users/ButlerBot","html_url":"https://github.com/ButlerBot","followers_url":"https://api.github.com/users/ButlerBot/followers","following_url":"https://api.github.com/users/ButlerBot/following{/other_user}","gists_url":"https://api.github.com/users/ButlerBot/gists{/gist_id}","starred_url":"https://api.github.com/users/ButlerBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButlerBot/subscriptions","organizations_url":"https://api.github.com/users/ButlerBot/orgs","repos_url":"https://api.github.com/users/ButlerBot/repos","events_url":"https://api.github.com/users/ButlerBot/events{/privacy}","received_events_url":"https://api.github.com/users/ButlerBot/received_events","type":"Organization","site_admin":false},"repo":{"id":39537725,"name":"butler","full_name":"ButlerBot/butler","owner":{"login":"ButlerBot","id":13906771,"avatar_url":"https://avatars.githubusercontent.com/u/13906771?v=3","gravatar_id":"","url":"https://api.github.com/users/ButlerBot","html_url":"https://github.com/ButlerBot","followers_url":"https://api.github.com/users/ButlerBot/followers","following_url":"https://api.github.com/users/ButlerBot/following{/other_user}","gists_url":"https://api.github.com/users/ButlerBot/gists{/gist_id}","starred_url":"https://api.github.com/users/ButlerBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButlerBot/subscriptions","organizations_url":"https://api.github.com/users/ButlerBot/orgs","repos_url":"https://api.github.com/users/ButlerBot/repos","events_url":"https://api.github.com/users/ButlerBot/events{/privacy}","received_events_url":"https://api.github.com/users/ButlerBot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ButlerBot/butler","description":"An elixir powered robot","fork":false,"url":"https://api.github.com/repos/ButlerBot/butler","forks_url":"https://api.github.com/repos/ButlerBot/butler/forks","keys_url":"https://api.github.com/repos/ButlerBot/butler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ButlerBot/butler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ButlerBot/butler/teams","hooks_url":"https://api.github.com/repos/ButlerBot/butler/hooks","issue_events_url":"https://api.github.com/repos/ButlerBot/butler/issues/events{/number}","events_url":"https://api.github.com/repos/ButlerBot/butler/events","assignees_url":"https://api.github.com/repos/ButlerBot/butler/assignees{/user}","branches_url":"https://api.github.com/repos/ButlerBot/butler/branches{/branch}","tags_url":"https://api.github.com/repos/ButlerBot/butler/tags","blobs_url":"https://api.github.com/repos/ButlerBot/butler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ButlerBot/butler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ButlerBot/butler/git/refs{/sha}","trees_url":"https://api.github.com/repos/ButlerBot/butler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ButlerBot/butler/statuses/{sha}","languages_url":"https://api.github.com/repos/ButlerBot/butler/languages","stargazers_url":"https://api.github.com/repos/ButlerBot/butler/stargazers","contributors_url":"https://api.github.com/repos/ButlerBot/butler/contributors","subscribers_url":"https://api.github.com/repos/ButlerBot/butler/subscribers","subscription_url":"https://api.github.com/repos/ButlerBot/butler/subscription","commits_url":"https://api.github.com/repos/ButlerBot/butler/commits{/sha}","git_commits_url":"https://api.github.com/repos/ButlerBot/butler/git/commits{/sha}","comments_url":"https://api.github.com/repos/ButlerBot/butler/comments{/number}","issue_comment_url":"https://api.github.com/repos/ButlerBot/butler/issues/comments{/number}","contents_url":"https://api.github.com/repos/ButlerBot/butler/contents/{+path}","compare_url":"https://api.github.com/repos/ButlerBot/butler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ButlerBot/butler/merges","archive_url":"https://api.github.com/repos/ButlerBot/butler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ButlerBot/butler/downloads","issues_url":"https://api.github.com/repos/ButlerBot/butler/issues{/number}","pulls_url":"https://api.github.com/repos/ButlerBot/butler/pulls{/number}","milestones_url":"https://api.github.com/repos/ButlerBot/butler/milestones{/number}","notifications_url":"https://api.github.com/repos/ButlerBot/butler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ButlerBot/butler/labels{/name}","releases_url":"https://api.github.com/repos/ButlerBot/butler/releases{/id}","created_at":"2015-07-23T00:53:00Z","updated_at":"2015-10-03T16:49:52Z","pushed_at":"2015-10-23T05:56:46Z","git_url":"git://github.com/ButlerBot/butler.git","ssh_url":"git@github.com:ButlerBot/butler.git","clone_url":"https://github.com/ButlerBot/butler.git","svn_url":"https://github.com/ButlerBot/butler","homepage":"","size":334,"stargazers_count":3,"watchers_count":3,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ButlerBot/butler/pulls/29"},"html":{"href":"https://github.com/ButlerBot/butler/pull/29"},"issue":{"href":"https://api.github.com/repos/ButlerBot/butler/issues/29"},"comments":{"href":"https://api.github.com/repos/ButlerBot/butler/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/ButlerBot/butler/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/ButlerBot/butler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ButlerBot/butler/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/ButlerBot/butler/statuses/f7408e642ebdb52fc2fc03abac57bea88dfdddd5"}}}}