{"action":"created","comment":{"url":"https://api.github.com/repos/orez-/SlackBot/pulls/comments/24287036","id":24287036,"diff_hunk":"@@ -0,0 +1,23 @@\n+ # -*- coding: utf8 -*-\n+from bs4 import BeautifulSoup\n+import requests\n+import urllib\n+\n+import modules\n+\n+\n+@modules.register(rule=r\"$@bot are the trains fucked?\")\n+def ismytrainfucked(bot, msg):","path":"modules/ismytrainfucked.py","position":10,"original_position":10,"commit_id":"0741f699061063cc586429ece7944e0167e3b9f6","original_commit_id":"0741f699061063cc586429ece7944e0167e3b9f6","user":{"login":"orez-","id":1037028,"avatar_url":"https://avatars.githubusercontent.com/u/1037028?v=3","gravatar_id":"","url":"https://api.github.com/users/orez-","html_url":"https://github.com/orez-","followers_url":"https://api.github.com/users/orez-/followers","following_url":"https://api.github.com/users/orez-/following{/other_user}","gists_url":"https://api.github.com/users/orez-/gists{/gist_id}","starred_url":"https://api.github.com/users/orez-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orez-/subscriptions","organizations_url":"https://api.github.com/users/orez-/orgs","repos_url":"https://api.github.com/users/orez-/repos","events_url":"https://api.github.com/users/orez-/events{/privacy}","received_events_url":"https://api.github.com/users/orez-/received_events","type":"User","site_admin":false},"body":"In my opinion it's good practice to leave the msg in anyway, just to be clear what that parameter WOULD be used for (even though it's never used in this case).","created_at":"2015-02-07T04:53:21Z","updated_at":"2015-02-07T04:53:21Z","html_url":"https://github.com/orez-/SlackBot/pull/3#discussion_r24287036","pull_request_url":"https://api.github.com/repos/orez-/SlackBot/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/orez-/SlackBot/pulls/comments/24287036"},"html":{"href":"https://github.com/orez-/SlackBot/pull/3#discussion_r24287036"},"pull_request":{"href":"https://api.github.com/repos/orez-/SlackBot/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/orez-/SlackBot/pulls/3","id":28859017,"html_url":"https://github.com/orez-/SlackBot/pull/3","diff_url":"https://github.com/orez-/SlackBot/pull/3.diff","patch_url":"https://github.com/orez-/SlackBot/pull/3.patch","issue_url":"https://api.github.com/repos/orez-/SlackBot/issues/3","number":3,"state":"open","locked":false,"title":"Add hook for 'ismytrainfucked.com'","user":{"login":"Cbeck527","id":985061,"avatar_url":"https://avatars.githubusercontent.com/u/985061?v=3","gravatar_id":"","url":"https://api.github.com/users/Cbeck527","html_url":"https://github.com/Cbeck527","followers_url":"https://api.github.com/users/Cbeck527/followers","following_url":"https://api.github.com/users/Cbeck527/following{/other_user}","gists_url":"https://api.github.com/users/Cbeck527/gists{/gist_id}","starred_url":"https://api.github.com/users/Cbeck527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cbeck527/subscriptions","organizations_url":"https://api.github.com/users/Cbeck527/orgs","repos_url":"https://api.github.com/users/Cbeck527/repos","events_url":"https://api.github.com/users/Cbeck527/events{/privacy}","received_events_url":"https://api.github.com/users/Cbeck527/received_events","type":"User","site_admin":false},"body":"* Bot listens for the text \"@bot are the trains fucked?\"\r\n* Bot curls http://ismytrainfucked.com and responds with the information\r\non the site","created_at":"2015-02-07T04:49:18Z","updated_at":"2015-02-07T04:53:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cc01036bc5ef72ddd64708f9b4a32eb5569f4dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/orez-/SlackBot/pulls/3/commits","review_comments_url":"https://api.github.com/repos/orez-/SlackBot/pulls/3/comments","review_comment_url":"https://api.github.com/repos/orez-/SlackBot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/orez-/SlackBot/issues/3/comments","statuses_url":"https://api.github.com/repos/orez-/SlackBot/statuses/0741f699061063cc586429ece7944e0167e3b9f6","head":{"label":"Cbeck527:master","ref":"master","sha":"0741f699061063cc586429ece7944e0167e3b9f6","user":{"login":"Cbeck527","id":985061,"avatar_url":"https://avatars.githubusercontent.com/u/985061?v=3","gravatar_id":"","url":"https://api.github.com/users/Cbeck527","html_url":"https://github.com/Cbeck527","followers_url":"https://api.github.com/users/Cbeck527/followers","following_url":"https://api.github.com/users/Cbeck527/following{/other_user}","gists_url":"https://api.github.com/users/Cbeck527/gists{/gist_id}","starred_url":"https://api.github.com/users/Cbeck527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cbeck527/subscriptions","organizations_url":"https://api.github.com/users/Cbeck527/orgs","repos_url":"https://api.github.com/users/Cbeck527/repos","events_url":"https://api.github.com/users/Cbeck527/events{/privacy}","received_events_url":"https://api.github.com/users/Cbeck527/received_events","type":"User","site_admin":false},"repo":{"id":30206617,"name":"SlackBot","full_name":"Cbeck527/SlackBot","owner":{"login":"Cbeck527","id":985061,"avatar_url":"https://avatars.githubusercontent.com/u/985061?v=3","gravatar_id":"","url":"https://api.github.com/users/Cbeck527","html_url":"https://github.com/Cbeck527","followers_url":"https://api.github.com/users/Cbeck527/followers","following_url":"https://api.github.com/users/Cbeck527/following{/other_user}","gists_url":"https://api.github.com/users/Cbeck527/gists{/gist_id}","starred_url":"https://api.github.com/users/Cbeck527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cbeck527/subscriptions","organizations_url":"https://api.github.com/users/Cbeck527/orgs","repos_url":"https://api.github.com/users/Cbeck527/repos","events_url":"https://api.github.com/users/Cbeck527/events{/privacy}","received_events_url":"https://api.github.com/users/Cbeck527/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cbeck527/SlackBot","description":"A bot to interface with Slack. It's still like crazy rough!","fork":true,"url":"https://api.github.com/repos/Cbeck527/SlackBot","forks_url":"https://api.github.com/repos/Cbeck527/SlackBot/forks","keys_url":"https://api.github.com/repos/Cbeck527/SlackBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cbeck527/SlackBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cbeck527/SlackBot/teams","hooks_url":"https://api.github.com/repos/Cbeck527/SlackBot/hooks","issue_events_url":"https://api.github.com/repos/Cbeck527/SlackBot/issues/events{/number}","events_url":"https://api.github.com/repos/Cbeck527/SlackBot/events","assignees_url":"https://api.github.com/repos/Cbeck527/SlackBot/assignees{/user}","branches_url":"https://api.github.com/repos/Cbeck527/SlackBot/branches{/branch}","tags_url":"https://api.github.com/repos/Cbeck527/SlackBot/tags","blobs_url":"https://api.github.com/repos/Cbeck527/SlackBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cbeck527/SlackBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cbeck527/SlackBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cbeck527/SlackBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cbeck527/SlackBot/statuses/{sha}","languages_url":"https://api.github.com/repos/Cbeck527/SlackBot/languages","stargazers_url":"https://api.github.com/repos/Cbeck527/SlackBot/stargazers","contributors_url":"https://api.github.com/repos/Cbeck527/SlackBot/contributors","subscribers_url":"https://api.github.com/repos/Cbeck527/SlackBot/subscribers","subscription_url":"https://api.github.com/repos/Cbeck527/SlackBot/subscription","commits_url":"https://api.github.com/repos/Cbeck527/SlackBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cbeck527/SlackBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cbeck527/SlackBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cbeck527/SlackBot/issues/comments/{number}","contents_url":"https://api.github.com/repos/Cbeck527/SlackBot/contents/{+path}","compare_url":"https://api.github.com/repos/Cbeck527/SlackBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cbeck527/SlackBot/merges","archive_url":"https://api.github.com/repos/Cbeck527/SlackBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cbeck527/SlackBot/downloads","issues_url":"https://api.github.com/repos/Cbeck527/SlackBot/issues{/number}","pulls_url":"https://api.github.com/repos/Cbeck527/SlackBot/pulls{/number}","milestones_url":"https://api.github.com/repos/Cbeck527/SlackBot/milestones{/number}","notifications_url":"https://api.github.com/repos/Cbeck527/SlackBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cbeck527/SlackBot/labels{/name}","releases_url":"https://api.github.com/repos/Cbeck527/SlackBot/releases{/id}","created_at":"2015-02-02T20:22:37Z","updated_at":"2015-02-07T04:48:48Z","pushed_at":"2015-02-07T04:48:48Z","git_url":"git://github.com/Cbeck527/SlackBot.git","ssh_url":"git@github.com:Cbeck527/SlackBot.git","clone_url":"https://github.com/Cbeck527/SlackBot.git","svn_url":"https://github.com/Cbeck527/SlackBot","homepage":null,"size":75,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"orez-:master","ref":"master","sha":"dfd0c5203e1ec927d69a5932da2b30571c58cd70","user":{"login":"orez-","id":1037028,"avatar_url":"https://avatars.githubusercontent.com/u/1037028?v=3","gravatar_id":"","url":"https://api.github.com/users/orez-","html_url":"https://github.com/orez-","followers_url":"https://api.github.com/users/orez-/followers","following_url":"https://api.github.com/users/orez-/following{/other_user}","gists_url":"https://api.github.com/users/orez-/gists{/gist_id}","starred_url":"https://api.github.com/users/orez-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orez-/subscriptions","organizations_url":"https://api.github.com/users/orez-/orgs","repos_url":"https://api.github.com/users/orez-/repos","events_url":"https://api.github.com/users/orez-/events{/privacy}","received_events_url":"https://api.github.com/users/orez-/received_events","type":"User","site_admin":false},"repo":{"id":29992589,"name":"SlackBot","full_name":"orez-/SlackBot","owner":{"login":"orez-","id":1037028,"avatar_url":"https://avatars.githubusercontent.com/u/1037028?v=3","gravatar_id":"","url":"https://api.github.com/users/orez-","html_url":"https://github.com/orez-","followers_url":"https://api.github.com/users/orez-/followers","following_url":"https://api.github.com/users/orez-/following{/other_user}","gists_url":"https://api.github.com/users/orez-/gists{/gist_id}","starred_url":"https://api.github.com/users/orez-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orez-/subscriptions","organizations_url":"https://api.github.com/users/orez-/orgs","repos_url":"https://api.github.com/users/orez-/repos","events_url":"https://api.github.com/users/orez-/events{/privacy}","received_events_url":"https://api.github.com/users/orez-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/orez-/SlackBot","description":"A bot to interface with Slack. It's still like crazy rough!","fork":false,"url":"https://api.github.com/repos/orez-/SlackBot","forks_url":"https://api.github.com/repos/orez-/SlackBot/forks","keys_url":"https://api.github.com/repos/orez-/SlackBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orez-/SlackBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orez-/SlackBot/teams","hooks_url":"https://api.github.com/repos/orez-/SlackBot/hooks","issue_events_url":"https://api.github.com/repos/orez-/SlackBot/issues/events{/number}","events_url":"https://api.github.com/repos/orez-/SlackBot/events","assignees_url":"https://api.github.com/repos/orez-/SlackBot/assignees{/user}","branches_url":"https://api.github.com/repos/orez-/SlackBot/branches{/branch}","tags_url":"https://api.github.com/repos/orez-/SlackBot/tags","blobs_url":"https://api.github.com/repos/orez-/SlackBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orez-/SlackBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orez-/SlackBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/orez-/SlackBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orez-/SlackBot/statuses/{sha}","languages_url":"https://api.github.com/repos/orez-/SlackBot/languages","stargazers_url":"https://api.github.com/repos/orez-/SlackBot/stargazers","contributors_url":"https://api.github.com/repos/orez-/SlackBot/contributors","subscribers_url":"https://api.github.com/repos/orez-/SlackBot/subscribers","subscription_url":"https://api.github.com/repos/orez-/SlackBot/subscription","commits_url":"https://api.github.com/repos/orez-/SlackBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/orez-/SlackBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/orez-/SlackBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/orez-/SlackBot/issues/comments/{number}","contents_url":"https://api.github.com/repos/orez-/SlackBot/contents/{+path}","compare_url":"https://api.github.com/repos/orez-/SlackBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orez-/SlackBot/merges","archive_url":"https://api.github.com/repos/orez-/SlackBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orez-/SlackBot/downloads","issues_url":"https://api.github.com/repos/orez-/SlackBot/issues{/number}","pulls_url":"https://api.github.com/repos/orez-/SlackBot/pulls{/number}","milestones_url":"https://api.github.com/repos/orez-/SlackBot/milestones{/number}","notifications_url":"https://api.github.com/repos/orez-/SlackBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orez-/SlackBot/labels{/name}","releases_url":"https://api.github.com/repos/orez-/SlackBot/releases{/id}","created_at":"2015-01-28T22:54:14Z","updated_at":"2015-02-06T23:36:12Z","pushed_at":"2015-02-06T23:36:12Z","git_url":"git://github.com/orez-/SlackBot.git","ssh_url":"git@github.com:orez-/SlackBot.git","clone_url":"https://github.com/orez-/SlackBot.git","svn_url":"https://github.com/orez-/SlackBot","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/orez-/SlackBot/pulls/3"},"html":{"href":"https://github.com/orez-/SlackBot/pull/3"},"issue":{"href":"https://api.github.com/repos/orez-/SlackBot/issues/3"},"comments":{"href":"https://api.github.com/repos/orez-/SlackBot/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/orez-/SlackBot/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/orez-/SlackBot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/orez-/SlackBot/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/orez-/SlackBot/statuses/0741f699061063cc586429ece7944e0167e3b9f6"}}}}