{"action":"created","comment":{"url":"https://api.github.com/repos/myano/jenni/pulls/comments/25035108","id":25035108,"diff_hunk":"@@ -0,0 +1,39 @@\n+#1/usr/bin/env/python\n+\"\"\"\n+food.py - Jenni Food Module\n+by afuhrtrumpet\n+\n+More info:\n+ * Jenni: https://github.com/myano/jenni/\n+ * Phenny: http://inamidst.com/phenny/\n+\"\"\"\n+from yelpapi import YelpAPI\n+import random\n+\n+def food(jenni, input):\n+\tyelp_api = YelpAPI(jenni.config.yelp_api_credentials['consumer_key'], jenni.config.yelp_api_credentials['consumer_secret'], jenni.config.yelp_api_credentials['token'], jenni.config.yelp_api_credentials['token_secret'])\n+\n+\tlocation = input.group(2)\n+\tif not location:\n+\t\tlocation = '43210'","path":"modules/food.py","position":18,"original_position":18,"commit_id":"c88c5e395ce4d152be1e3f9f072d713f6ce1fc99","original_commit_id":"c88c5e395ce4d152be1e3f9f072d713f6ce1fc99","user":{"login":"kaneda","id":260107,"avatar_url":"https://avatars.githubusercontent.com/u/260107?v=3","gravatar_id":"","url":"https://api.github.com/users/kaneda","html_url":"https://github.com/kaneda","followers_url":"https://api.github.com/users/kaneda/followers","following_url":"https://api.github.com/users/kaneda/following{/other_user}","gists_url":"https://api.github.com/users/kaneda/gists{/gist_id}","starred_url":"https://api.github.com/users/kaneda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaneda/subscriptions","organizations_url":"https://api.github.com/users/kaneda/orgs","repos_url":"https://api.github.com/users/kaneda/repos","events_url":"https://api.github.com/users/kaneda/events{/privacy}","received_events_url":"https://api.github.com/users/kaneda/received_events","type":"User","site_admin":false},"body":"You should force the user to enter location instead of using an arbitrary one by saying something like:\r\n```\r\njenni.say(\"Perhaps you meant .food 90210?\")\r\n```","created_at":"2015-02-19T22:57:37Z","updated_at":"2015-02-19T22:57:37Z","html_url":"https://github.com/myano/jenni/pull/148#discussion_r25035108","pull_request_url":"https://api.github.com/repos/myano/jenni/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/myano/jenni/pulls/comments/25035108"},"html":{"href":"https://github.com/myano/jenni/pull/148#discussion_r25035108"},"pull_request":{"href":"https://api.github.com/repos/myano/jenni/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/myano/jenni/pulls/148","id":29652746,"html_url":"https://github.com/myano/jenni/pull/148","diff_url":"https://github.com/myano/jenni/pull/148.diff","patch_url":"https://github.com/myano/jenni/pull/148.patch","issue_url":"https://api.github.com/repos/myano/jenni/issues/148","number":148,"state":"open","locked":false,"title":"Improved food module","user":{"login":"afuhrtrumpet","id":2854004,"avatar_url":"https://avatars.githubusercontent.com/u/2854004?v=3","gravatar_id":"","url":"https://api.github.com/users/afuhrtrumpet","html_url":"https://github.com/afuhrtrumpet","followers_url":"https://api.github.com/users/afuhrtrumpet/followers","following_url":"https://api.github.com/users/afuhrtrumpet/following{/other_user}","gists_url":"https://api.github.com/users/afuhrtrumpet/gists{/gist_id}","starred_url":"https://api.github.com/users/afuhrtrumpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afuhrtrumpet/subscriptions","organizations_url":"https://api.github.com/users/afuhrtrumpet/orgs","repos_url":"https://api.github.com/users/afuhrtrumpet/repos","events_url":"https://api.github.com/users/afuhrtrumpet/events{/privacy}","received_events_url":"https://api.github.com/users/afuhrtrumpet/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-19T21:54:55Z","updated_at":"2015-02-19T22:57:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eea2d5afa98ed0af6e2122c7f72ecd928f8d1063","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/myano/jenni/pulls/148/commits","review_comments_url":"https://api.github.com/repos/myano/jenni/pulls/148/comments","review_comment_url":"https://api.github.com/repos/myano/jenni/pulls/comments/{number}","comments_url":"https://api.github.com/repos/myano/jenni/issues/148/comments","statuses_url":"https://api.github.com/repos/myano/jenni/statuses/c88c5e395ce4d152be1e3f9f072d713f6ce1fc99","head":{"label":"afuhrtrumpet:food","ref":"food","sha":"c88c5e395ce4d152be1e3f9f072d713f6ce1fc99","user":{"login":"afuhrtrumpet","id":2854004,"avatar_url":"https://avatars.githubusercontent.com/u/2854004?v=3","gravatar_id":"","url":"https://api.github.com/users/afuhrtrumpet","html_url":"https://github.com/afuhrtrumpet","followers_url":"https://api.github.com/users/afuhrtrumpet/followers","following_url":"https://api.github.com/users/afuhrtrumpet/following{/other_user}","gists_url":"https://api.github.com/users/afuhrtrumpet/gists{/gist_id}","starred_url":"https://api.github.com/users/afuhrtrumpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afuhrtrumpet/subscriptions","organizations_url":"https://api.github.com/users/afuhrtrumpet/orgs","repos_url":"https://api.github.com/users/afuhrtrumpet/repos","events_url":"https://api.github.com/users/afuhrtrumpet/events{/privacy}","received_events_url":"https://api.github.com/users/afuhrtrumpet/received_events","type":"User","site_admin":false},"repo":{"id":31038949,"name":"jenni","full_name":"afuhrtrumpet/jenni","owner":{"login":"afuhrtrumpet","id":2854004,"avatar_url":"https://avatars.githubusercontent.com/u/2854004?v=3","gravatar_id":"","url":"https://api.github.com/users/afuhrtrumpet","html_url":"https://github.com/afuhrtrumpet","followers_url":"https://api.github.com/users/afuhrtrumpet/followers","following_url":"https://api.github.com/users/afuhrtrumpet/following{/other_user}","gists_url":"https://api.github.com/users/afuhrtrumpet/gists{/gist_id}","starred_url":"https://api.github.com/users/afuhrtrumpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afuhrtrumpet/subscriptions","organizations_url":"https://api.github.com/users/afuhrtrumpet/orgs","repos_url":"https://api.github.com/users/afuhrtrumpet/repos","events_url":"https://api.github.com/users/afuhrtrumpet/events{/privacy}","received_events_url":"https://api.github.com/users/afuhrtrumpet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/afuhrtrumpet/jenni","description":"jenni is a python IRC bot maintained and developed by Michael Yanovich. This project was created by Sean B. Palmer.","fork":true,"url":"https://api.github.com/repos/afuhrtrumpet/jenni","forks_url":"https://api.github.com/repos/afuhrtrumpet/jenni/forks","keys_url":"https://api.github.com/repos/afuhrtrumpet/jenni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/afuhrtrumpet/jenni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/afuhrtrumpet/jenni/teams","hooks_url":"https://api.github.com/repos/afuhrtrumpet/jenni/hooks","issue_events_url":"https://api.github.com/repos/afuhrtrumpet/jenni/issues/events{/number}","events_url":"https://api.github.com/repos/afuhrtrumpet/jenni/events","assignees_url":"https://api.github.com/repos/afuhrtrumpet/jenni/assignees{/user}","branches_url":"https://api.github.com/repos/afuhrtrumpet/jenni/branches{/branch}","tags_url":"https://api.github.com/repos/afuhrtrumpet/jenni/tags","blobs_url":"https://api.github.com/repos/afuhrtrumpet/jenni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/afuhrtrumpet/jenni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/afuhrtrumpet/jenni/git/refs{/sha}","trees_url":"https://api.github.com/repos/afuhrtrumpet/jenni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/afuhrtrumpet/jenni/statuses/{sha}","languages_url":"https://api.github.com/repos/afuhrtrumpet/jenni/languages","stargazers_url":"https://api.github.com/repos/afuhrtrumpet/jenni/stargazers","contributors_url":"https://api.github.com/repos/afuhrtrumpet/jenni/contributors","subscribers_url":"https://api.github.com/repos/afuhrtrumpet/jenni/subscribers","subscription_url":"https://api.github.com/repos/afuhrtrumpet/jenni/subscription","commits_url":"https://api.github.com/repos/afuhrtrumpet/jenni/commits{/sha}","git_commits_url":"https://api.github.com/repos/afuhrtrumpet/jenni/git/commits{/sha}","comments_url":"https://api.github.com/repos/afuhrtrumpet/jenni/comments{/number}","issue_comment_url":"https://api.github.com/repos/afuhrtrumpet/jenni/issues/comments/{number}","contents_url":"https://api.github.com/repos/afuhrtrumpet/jenni/contents/{+path}","compare_url":"https://api.github.com/repos/afuhrtrumpet/jenni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/afuhrtrumpet/jenni/merges","archive_url":"https://api.github.com/repos/afuhrtrumpet/jenni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/afuhrtrumpet/jenni/downloads","issues_url":"https://api.github.com/repos/afuhrtrumpet/jenni/issues{/number}","pulls_url":"https://api.github.com/repos/afuhrtrumpet/jenni/pulls{/number}","milestones_url":"https://api.github.com/repos/afuhrtrumpet/jenni/milestones{/number}","notifications_url":"https://api.github.com/repos/afuhrtrumpet/jenni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/afuhrtrumpet/jenni/labels{/name}","releases_url":"https://api.github.com/repos/afuhrtrumpet/jenni/releases{/id}","created_at":"2015-02-19T21:53:56Z","updated_at":"2015-02-19T21:53:57Z","pushed_at":"2015-02-19T21:54:35Z","git_url":"git://github.com/afuhrtrumpet/jenni.git","ssh_url":"git@github.com:afuhrtrumpet/jenni.git","clone_url":"https://github.com/afuhrtrumpet/jenni.git","svn_url":"https://github.com/afuhrtrumpet/jenni","homepage":"","size":5621,"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":"myano:master","ref":"master","sha":"f747f73ae8e4f9821339553748fe232839f6535d","user":{"login":"myano","id":166297,"avatar_url":"https://avatars.githubusercontent.com/u/166297?v=3","gravatar_id":"","url":"https://api.github.com/users/myano","html_url":"https://github.com/myano","followers_url":"https://api.github.com/users/myano/followers","following_url":"https://api.github.com/users/myano/following{/other_user}","gists_url":"https://api.github.com/users/myano/gists{/gist_id}","starred_url":"https://api.github.com/users/myano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myano/subscriptions","organizations_url":"https://api.github.com/users/myano/orgs","repos_url":"https://api.github.com/users/myano/repos","events_url":"https://api.github.com/users/myano/events{/privacy}","received_events_url":"https://api.github.com/users/myano/received_events","type":"User","site_admin":false},"repo":{"id":422097,"name":"jenni","full_name":"myano/jenni","owner":{"login":"myano","id":166297,"avatar_url":"https://avatars.githubusercontent.com/u/166297?v=3","gravatar_id":"","url":"https://api.github.com/users/myano","html_url":"https://github.com/myano","followers_url":"https://api.github.com/users/myano/followers","following_url":"https://api.github.com/users/myano/following{/other_user}","gists_url":"https://api.github.com/users/myano/gists{/gist_id}","starred_url":"https://api.github.com/users/myano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myano/subscriptions","organizations_url":"https://api.github.com/users/myano/orgs","repos_url":"https://api.github.com/users/myano/repos","events_url":"https://api.github.com/users/myano/events{/privacy}","received_events_url":"https://api.github.com/users/myano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/myano/jenni","description":"jenni is a python IRC bot maintained and developed by Michael Yanovich. This project was created by Sean B. Palmer.","fork":false,"url":"https://api.github.com/repos/myano/jenni","forks_url":"https://api.github.com/repos/myano/jenni/forks","keys_url":"https://api.github.com/repos/myano/jenni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myano/jenni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myano/jenni/teams","hooks_url":"https://api.github.com/repos/myano/jenni/hooks","issue_events_url":"https://api.github.com/repos/myano/jenni/issues/events{/number}","events_url":"https://api.github.com/repos/myano/jenni/events","assignees_url":"https://api.github.com/repos/myano/jenni/assignees{/user}","branches_url":"https://api.github.com/repos/myano/jenni/branches{/branch}","tags_url":"https://api.github.com/repos/myano/jenni/tags","blobs_url":"https://api.github.com/repos/myano/jenni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myano/jenni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myano/jenni/git/refs{/sha}","trees_url":"https://api.github.com/repos/myano/jenni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myano/jenni/statuses/{sha}","languages_url":"https://api.github.com/repos/myano/jenni/languages","stargazers_url":"https://api.github.com/repos/myano/jenni/stargazers","contributors_url":"https://api.github.com/repos/myano/jenni/contributors","subscribers_url":"https://api.github.com/repos/myano/jenni/subscribers","subscription_url":"https://api.github.com/repos/myano/jenni/subscription","commits_url":"https://api.github.com/repos/myano/jenni/commits{/sha}","git_commits_url":"https://api.github.com/repos/myano/jenni/git/commits{/sha}","comments_url":"https://api.github.com/repos/myano/jenni/comments{/number}","issue_comment_url":"https://api.github.com/repos/myano/jenni/issues/comments/{number}","contents_url":"https://api.github.com/repos/myano/jenni/contents/{+path}","compare_url":"https://api.github.com/repos/myano/jenni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myano/jenni/merges","archive_url":"https://api.github.com/repos/myano/jenni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myano/jenni/downloads","issues_url":"https://api.github.com/repos/myano/jenni/issues{/number}","pulls_url":"https://api.github.com/repos/myano/jenni/pulls{/number}","milestones_url":"https://api.github.com/repos/myano/jenni/milestones{/number}","notifications_url":"https://api.github.com/repos/myano/jenni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myano/jenni/labels{/name}","releases_url":"https://api.github.com/repos/myano/jenni/releases{/id}","created_at":"2009-12-12T01:00:31Z","updated_at":"2015-02-18T04:25:08Z","pushed_at":"2015-02-18T04:25:08Z","git_url":"git://github.com/myano/jenni.git","ssh_url":"git@github.com:myano/jenni.git","clone_url":"https://github.com/myano/jenni.git","svn_url":"https://github.com/myano/jenni","homepage":"","size":5621,"stargazers_count":150,"watchers_count":150,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":31,"forks":72,"open_issues":31,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/myano/jenni/pulls/148"},"html":{"href":"https://github.com/myano/jenni/pull/148"},"issue":{"href":"https://api.github.com/repos/myano/jenni/issues/148"},"comments":{"href":"https://api.github.com/repos/myano/jenni/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/myano/jenni/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/myano/jenni/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/myano/jenni/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/myano/jenni/statuses/c88c5e395ce4d152be1e3f9f072d713f6ce1fc99"}}}}