{"action":"created","comment":{"url":"https://api.github.com/repos/inann/groupmeSP/pulls/comments/38796468","id":38796468,"diff_hunk":"@@ -62,9 +62,25 @@ callbackFunction = function(response){\n   });\n };\n \n+// Parse the incoming text so that each word is read as a token.\n+// This will break the incoming text message into a series of tokens\n+// in a list. A message would be broken as follows:\n+// Input: \"The quick brown fox \".\n+// Output: {[\"The\"] [\"quick\"] [\"brown\"] [\"fox\"]}\n // Check to see if we should send the message; this\n // is done by checking for certain keywords.\n function checkForCommand(inText){\n+\t\n+\t//If the message does not have \"hey bob\" (with any caps) just ignore it right away\n+\tif (req.body.inText.toLower.indexOf(\"hey bob\") = -1)","path":"test.js","position":14,"original_position":14,"commit_id":"5bba5b2fbf7d9acc8f172f78fce8d07baa480082","original_commit_id":"5bba5b2fbf7d9acc8f172f78fce8d07baa480082","user":{"login":"inann","id":3629500,"avatar_url":"https://avatars.githubusercontent.com/u/3629500?v=3","gravatar_id":"","url":"https://api.github.com/users/inann","html_url":"https://github.com/inann","followers_url":"https://api.github.com/users/inann/followers","following_url":"https://api.github.com/users/inann/following{/other_user}","gists_url":"https://api.github.com/users/inann/gists{/gist_id}","starred_url":"https://api.github.com/users/inann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inann/subscriptions","organizations_url":"https://api.github.com/users/inann/orgs","repos_url":"https://api.github.com/users/inann/repos","events_url":"https://api.github.com/users/inann/events{/privacy}","received_events_url":"https://api.github.com/users/inann/received_events","type":"User","site_admin":false},"body":"At this point you no longer have access to (req.body). My suggestion initially was to place this higher (I'll leave another comment up there); before tokenizing or even really beginning to process the text, we want to see if it even qualifies to be a command.","created_at":"2015-09-04T21:38:04Z","updated_at":"2015-09-04T21:38:04Z","html_url":"https://github.com/inann/groupmeSP/pull/10#discussion_r38796468","pull_request_url":"https://api.github.com/repos/inann/groupmeSP/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/inann/groupmeSP/pulls/comments/38796468"},"html":{"href":"https://github.com/inann/groupmeSP/pull/10#discussion_r38796468"},"pull_request":{"href":"https://api.github.com/repos/inann/groupmeSP/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/inann/groupmeSP/pulls/10","id":44246392,"html_url":"https://github.com/inann/groupmeSP/pull/10","diff_url":"https://github.com/inann/groupmeSP/pull/10.diff","patch_url":"https://github.com/inann/groupmeSP/pull/10.patch","issue_url":"https://api.github.com/repos/inann/groupmeSP/issues/10","number":10,"state":"open","locked":false,"title":"Checking for \"hey bob\"","user":{"login":"chartreusemongoose","id":14112389,"avatar_url":"https://avatars.githubusercontent.com/u/14112389?v=3","gravatar_id":"","url":"https://api.github.com/users/chartreusemongoose","html_url":"https://github.com/chartreusemongoose","followers_url":"https://api.github.com/users/chartreusemongoose/followers","following_url":"https://api.github.com/users/chartreusemongoose/following{/other_user}","gists_url":"https://api.github.com/users/chartreusemongoose/gists{/gist_id}","starred_url":"https://api.github.com/users/chartreusemongoose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chartreusemongoose/subscriptions","organizations_url":"https://api.github.com/users/chartreusemongoose/orgs","repos_url":"https://api.github.com/users/chartreusemongoose/repos","events_url":"https://api.github.com/users/chartreusemongoose/events{/privacy}","received_events_url":"https://api.github.com/users/chartreusemongoose/received_events","type":"User","site_admin":false},"body":"a number of changes and takebacks and being confused.","created_at":"2015-09-04T18:13:58Z","updated_at":"2015-09-04T21:38:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a71c907ab693e6de7be16eb91c3ce5e7673071e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inann/groupmeSP/pulls/10/commits","review_comments_url":"https://api.github.com/repos/inann/groupmeSP/pulls/10/comments","review_comment_url":"https://api.github.com/repos/inann/groupmeSP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inann/groupmeSP/issues/10/comments","statuses_url":"https://api.github.com/repos/inann/groupmeSP/statuses/5bba5b2fbf7d9acc8f172f78fce8d07baa480082","head":{"label":"inann:addNewParsing","ref":"addNewParsing","sha":"5bba5b2fbf7d9acc8f172f78fce8d07baa480082","user":{"login":"inann","id":3629500,"avatar_url":"https://avatars.githubusercontent.com/u/3629500?v=3","gravatar_id":"","url":"https://api.github.com/users/inann","html_url":"https://github.com/inann","followers_url":"https://api.github.com/users/inann/followers","following_url":"https://api.github.com/users/inann/following{/other_user}","gists_url":"https://api.github.com/users/inann/gists{/gist_id}","starred_url":"https://api.github.com/users/inann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inann/subscriptions","organizations_url":"https://api.github.com/users/inann/orgs","repos_url":"https://api.github.com/users/inann/repos","events_url":"https://api.github.com/users/inann/events{/privacy}","received_events_url":"https://api.github.com/users/inann/received_events","type":"User","site_admin":false},"repo":{"id":41825691,"name":"groupmeSP","full_name":"inann/groupmeSP","owner":{"login":"inann","id":3629500,"avatar_url":"https://avatars.githubusercontent.com/u/3629500?v=3","gravatar_id":"","url":"https://api.github.com/users/inann","html_url":"https://github.com/inann","followers_url":"https://api.github.com/users/inann/followers","following_url":"https://api.github.com/users/inann/following{/other_user}","gists_url":"https://api.github.com/users/inann/gists{/gist_id}","starred_url":"https://api.github.com/users/inann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inann/subscriptions","organizations_url":"https://api.github.com/users/inann/orgs","repos_url":"https://api.github.com/users/inann/repos","events_url":"https://api.github.com/users/inann/events{/privacy}","received_events_url":"https://api.github.com/users/inann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inann/groupmeSP","description":"","fork":false,"url":"https://api.github.com/repos/inann/groupmeSP","forks_url":"https://api.github.com/repos/inann/groupmeSP/forks","keys_url":"https://api.github.com/repos/inann/groupmeSP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inann/groupmeSP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inann/groupmeSP/teams","hooks_url":"https://api.github.com/repos/inann/groupmeSP/hooks","issue_events_url":"https://api.github.com/repos/inann/groupmeSP/issues/events{/number}","events_url":"https://api.github.com/repos/inann/groupmeSP/events","assignees_url":"https://api.github.com/repos/inann/groupmeSP/assignees{/user}","branches_url":"https://api.github.com/repos/inann/groupmeSP/branches{/branch}","tags_url":"https://api.github.com/repos/inann/groupmeSP/tags","blobs_url":"https://api.github.com/repos/inann/groupmeSP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inann/groupmeSP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inann/groupmeSP/git/refs{/sha}","trees_url":"https://api.github.com/repos/inann/groupmeSP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inann/groupmeSP/statuses/{sha}","languages_url":"https://api.github.com/repos/inann/groupmeSP/languages","stargazers_url":"https://api.github.com/repos/inann/groupmeSP/stargazers","contributors_url":"https://api.github.com/repos/inann/groupmeSP/contributors","subscribers_url":"https://api.github.com/repos/inann/groupmeSP/subscribers","subscription_url":"https://api.github.com/repos/inann/groupmeSP/subscription","commits_url":"https://api.github.com/repos/inann/groupmeSP/commits{/sha}","git_commits_url":"https://api.github.com/repos/inann/groupmeSP/git/commits{/sha}","comments_url":"https://api.github.com/repos/inann/groupmeSP/comments{/number}","issue_comment_url":"https://api.github.com/repos/inann/groupmeSP/issues/comments{/number}","contents_url":"https://api.github.com/repos/inann/groupmeSP/contents/{+path}","compare_url":"https://api.github.com/repos/inann/groupmeSP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inann/groupmeSP/merges","archive_url":"https://api.github.com/repos/inann/groupmeSP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inann/groupmeSP/downloads","issues_url":"https://api.github.com/repos/inann/groupmeSP/issues{/number}","pulls_url":"https://api.github.com/repos/inann/groupmeSP/pulls{/number}","milestones_url":"https://api.github.com/repos/inann/groupmeSP/milestones{/number}","notifications_url":"https://api.github.com/repos/inann/groupmeSP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inann/groupmeSP/labels{/name}","releases_url":"https://api.github.com/repos/inann/groupmeSP/releases{/id}","created_at":"2015-09-02T20:21:25Z","updated_at":"2015-09-03T04:55:27Z","pushed_at":"2015-09-04T18:17:10Z","git_url":"git://github.com/inann/groupmeSP.git","ssh_url":"git@github.com:inann/groupmeSP.git","clone_url":"https://github.com/inann/groupmeSP.git","svn_url":"https://github.com/inann/groupmeSP","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"inann:master","ref":"master","sha":"cf82081b612195f0a997960140ed34c6e3f6fbda","user":{"login":"inann","id":3629500,"avatar_url":"https://avatars.githubusercontent.com/u/3629500?v=3","gravatar_id":"","url":"https://api.github.com/users/inann","html_url":"https://github.com/inann","followers_url":"https://api.github.com/users/inann/followers","following_url":"https://api.github.com/users/inann/following{/other_user}","gists_url":"https://api.github.com/users/inann/gists{/gist_id}","starred_url":"https://api.github.com/users/inann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inann/subscriptions","organizations_url":"https://api.github.com/users/inann/orgs","repos_url":"https://api.github.com/users/inann/repos","events_url":"https://api.github.com/users/inann/events{/privacy}","received_events_url":"https://api.github.com/users/inann/received_events","type":"User","site_admin":false},"repo":{"id":41825691,"name":"groupmeSP","full_name":"inann/groupmeSP","owner":{"login":"inann","id":3629500,"avatar_url":"https://avatars.githubusercontent.com/u/3629500?v=3","gravatar_id":"","url":"https://api.github.com/users/inann","html_url":"https://github.com/inann","followers_url":"https://api.github.com/users/inann/followers","following_url":"https://api.github.com/users/inann/following{/other_user}","gists_url":"https://api.github.com/users/inann/gists{/gist_id}","starred_url":"https://api.github.com/users/inann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inann/subscriptions","organizations_url":"https://api.github.com/users/inann/orgs","repos_url":"https://api.github.com/users/inann/repos","events_url":"https://api.github.com/users/inann/events{/privacy}","received_events_url":"https://api.github.com/users/inann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inann/groupmeSP","description":"","fork":false,"url":"https://api.github.com/repos/inann/groupmeSP","forks_url":"https://api.github.com/repos/inann/groupmeSP/forks","keys_url":"https://api.github.com/repos/inann/groupmeSP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inann/groupmeSP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inann/groupmeSP/teams","hooks_url":"https://api.github.com/repos/inann/groupmeSP/hooks","issue_events_url":"https://api.github.com/repos/inann/groupmeSP/issues/events{/number}","events_url":"https://api.github.com/repos/inann/groupmeSP/events","assignees_url":"https://api.github.com/repos/inann/groupmeSP/assignees{/user}","branches_url":"https://api.github.com/repos/inann/groupmeSP/branches{/branch}","tags_url":"https://api.github.com/repos/inann/groupmeSP/tags","blobs_url":"https://api.github.com/repos/inann/groupmeSP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inann/groupmeSP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inann/groupmeSP/git/refs{/sha}","trees_url":"https://api.github.com/repos/inann/groupmeSP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inann/groupmeSP/statuses/{sha}","languages_url":"https://api.github.com/repos/inann/groupmeSP/languages","stargazers_url":"https://api.github.com/repos/inann/groupmeSP/stargazers","contributors_url":"https://api.github.com/repos/inann/groupmeSP/contributors","subscribers_url":"https://api.github.com/repos/inann/groupmeSP/subscribers","subscription_url":"https://api.github.com/repos/inann/groupmeSP/subscription","commits_url":"https://api.github.com/repos/inann/groupmeSP/commits{/sha}","git_commits_url":"https://api.github.com/repos/inann/groupmeSP/git/commits{/sha}","comments_url":"https://api.github.com/repos/inann/groupmeSP/comments{/number}","issue_comment_url":"https://api.github.com/repos/inann/groupmeSP/issues/comments{/number}","contents_url":"https://api.github.com/repos/inann/groupmeSP/contents/{+path}","compare_url":"https://api.github.com/repos/inann/groupmeSP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inann/groupmeSP/merges","archive_url":"https://api.github.com/repos/inann/groupmeSP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inann/groupmeSP/downloads","issues_url":"https://api.github.com/repos/inann/groupmeSP/issues{/number}","pulls_url":"https://api.github.com/repos/inann/groupmeSP/pulls{/number}","milestones_url":"https://api.github.com/repos/inann/groupmeSP/milestones{/number}","notifications_url":"https://api.github.com/repos/inann/groupmeSP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inann/groupmeSP/labels{/name}","releases_url":"https://api.github.com/repos/inann/groupmeSP/releases{/id}","created_at":"2015-09-02T20:21:25Z","updated_at":"2015-09-03T04:55:27Z","pushed_at":"2015-09-04T18:17:10Z","git_url":"git://github.com/inann/groupmeSP.git","ssh_url":"git@github.com:inann/groupmeSP.git","clone_url":"https://github.com/inann/groupmeSP.git","svn_url":"https://github.com/inann/groupmeSP","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inann/groupmeSP/pulls/10"},"html":{"href":"https://github.com/inann/groupmeSP/pull/10"},"issue":{"href":"https://api.github.com/repos/inann/groupmeSP/issues/10"},"comments":{"href":"https://api.github.com/repos/inann/groupmeSP/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/inann/groupmeSP/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/inann/groupmeSP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inann/groupmeSP/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/inann/groupmeSP/statuses/5bba5b2fbf7d9acc8f172f78fce8d07baa480082"}}}}