{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/27917298","id":27917298,"diff_hunk":"@@ -0,0 +1,76 @@\n+package DDG::Spice::Rain;\n+\n+use strict;\n+use DDG::Spice;\n+\n+primary_example_queries \"is it raining?\";\n+secondary_example_queries \"is it raining in New York City?\";\n+description \"Check if it's raining\";\n+name \"Rain\";\n+source \"Forecast.io\";\n+code_url \"https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Rain.pm\";\n+topics \"everyday\";\n+category \"facts\";\n+attribution web => [ 'https://bibhas.in', 'Bibhas Debnath' ],\n+            github => [ 'https://github.com/iambibhas', 'Bibhas'],\n+            twitter => ['http://twitter.com/bibhasdn', 'Bibhas D'];\n+\n+spice to => 'http://beta.json-generator.com/api/json/get/GO60Xk7?callback={{callback}}';\n+\n+triggers any => \"rain\", \"raining\";\n+\n+spice proxy_cache_valid => '5m';\n+\n+my %rain = map { $_ => undef } (","path":"lib/DDG/Spice/Rain.pm","position":24,"original_position":24,"commit_id":"ee6a03185b372d0d601658de571d1a4b2bd1d72e","original_commit_id":"ee6a03185b372d0d601658de571d1a4b2bd1d72e","user":{"login":"moollaza","id":873785,"avatar_url":"https://avatars.githubusercontent.com/u/873785?v=3","gravatar_id":"","url":"https://api.github.com/users/moollaza","html_url":"https://github.com/moollaza","followers_url":"https://api.github.com/users/moollaza/followers","following_url":"https://api.github.com/users/moollaza/following{/other_user}","gists_url":"https://api.github.com/users/moollaza/gists{/gist_id}","starred_url":"https://api.github.com/users/moollaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moollaza/subscriptions","organizations_url":"https://api.github.com/users/moollaza/orgs","repos_url":"https://api.github.com/users/moollaza/repos","events_url":"https://api.github.com/users/moollaza/events{/privacy}","received_events_url":"https://api.github.com/users/moollaza/received_events","type":"User","site_admin":false},"body":"We might as well make these the triggers?\r\n\r\n```perl\r\ntriggers start => \"is it going to rain\", \"is it raining here\", \"will it rain today\" ... ;\r\ntriggers any  => \"going to rain today\", ... ;\r\n```","created_at":"2015-04-07T20:34:07Z","updated_at":"2015-04-07T20:34:07Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1739#discussion_r27917298","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/27917298"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1739#discussion_r27917298"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739","id":32800163,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1739","diff_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1739.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1739.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1739","number":1739,"state":"open","locked":false,"title":"Rain - is it raining?","user":{"login":"iambibhas","id":357253,"avatar_url":"https://avatars.githubusercontent.com/u/357253?v=3","gravatar_id":"","url":"https://api.github.com/users/iambibhas","html_url":"https://github.com/iambibhas","followers_url":"https://api.github.com/users/iambibhas/followers","following_url":"https://api.github.com/users/iambibhas/following{/other_user}","gists_url":"https://api.github.com/users/iambibhas/gists{/gist_id}","starred_url":"https://api.github.com/users/iambibhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambibhas/subscriptions","organizations_url":"https://api.github.com/users/iambibhas/orgs","repos_url":"https://api.github.com/users/iambibhas/repos","events_url":"https://api.github.com/users/iambibhas/events{/privacy}","received_events_url":"https://api.github.com/users/iambibhas/received_events","type":"User","site_admin":false},"body":"Fixes #1577.\r\n\r\n![](http://imgur.com/7aNIQqC.png)\r\n\r\nNote:\r\n - Using dummy api endpoint.\r\n - Showing the current condition. Should we also show if it's Going to rain anytime soon?","created_at":"2015-04-07T20:05:25Z","updated_at":"2015-04-07T20:34:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76523518d53ed1d5506bb96e0028d4d87508436e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1739/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/ee6a03185b372d0d601658de571d1a4b2bd1d72e","head":{"label":"iambibhas:spice_rain","ref":"spice_rain","sha":"ee6a03185b372d0d601658de571d1a4b2bd1d72e","user":{"login":"iambibhas","id":357253,"avatar_url":"https://avatars.githubusercontent.com/u/357253?v=3","gravatar_id":"","url":"https://api.github.com/users/iambibhas","html_url":"https://github.com/iambibhas","followers_url":"https://api.github.com/users/iambibhas/followers","following_url":"https://api.github.com/users/iambibhas/following{/other_user}","gists_url":"https://api.github.com/users/iambibhas/gists{/gist_id}","starred_url":"https://api.github.com/users/iambibhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambibhas/subscriptions","organizations_url":"https://api.github.com/users/iambibhas/orgs","repos_url":"https://api.github.com/users/iambibhas/repos","events_url":"https://api.github.com/users/iambibhas/events{/privacy}","received_events_url":"https://api.github.com/users/iambibhas/received_events","type":"User","site_admin":false},"repo":{"id":31980001,"name":"zeroclickinfo-spice","full_name":"iambibhas/zeroclickinfo-spice","owner":{"login":"iambibhas","id":357253,"avatar_url":"https://avatars.githubusercontent.com/u/357253?v=3","gravatar_id":"","url":"https://api.github.com/users/iambibhas","html_url":"https://github.com/iambibhas","followers_url":"https://api.github.com/users/iambibhas/followers","following_url":"https://api.github.com/users/iambibhas/following{/other_user}","gists_url":"https://api.github.com/users/iambibhas/gists{/gist_id}","starred_url":"https://api.github.com/users/iambibhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambibhas/subscriptions","organizations_url":"https://api.github.com/users/iambibhas/orgs","repos_url":"https://api.github.com/users/iambibhas/repos","events_url":"https://api.github.com/users/iambibhas/events{/privacy}","received_events_url":"https://api.github.com/users/iambibhas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iambibhas/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":true,"url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/issues/comments{/number}","contents_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/iambibhas/zeroclickinfo-spice/releases{/id}","created_at":"2015-03-10T20:25:35Z","updated_at":"2015-04-03T17:47:17Z","pushed_at":"2015-04-07T20:01:02Z","git_url":"git://github.com/iambibhas/zeroclickinfo-spice.git","ssh_url":"git@github.com:iambibhas/zeroclickinfo-spice.git","clone_url":"https://github.com/iambibhas/zeroclickinfo-spice.git","svn_url":"https://github.com/iambibhas/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":14579,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"duckduckgo:master","ref":"master","sha":"b667805d3a77b45f76c1f6829c2f3c4e84500c78","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":1997671,"name":"zeroclickinfo-spice","full_name":"duckduckgo/zeroclickinfo-spice","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/releases{/id}","created_at":"2011-07-04T22:08:37Z","updated_at":"2015-04-07T16:46:27Z","pushed_at":"2015-04-07T20:05:25Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-spice.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-spice.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-spice.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":35026,"stargazers_count":221,"watchers_count":221,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":497,"mirror_url":null,"open_issues_count":139,"forks":497,"open_issues":139,"watchers":221,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1739"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1739"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1739/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1739/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/ee6a03185b372d0d601658de571d1a4b2bd1d72e"}}}}