{"action":"created","comment":{"url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/comments/79291591","id":79291591,"diff_hunk":"@@ -276,6 +279,21 @@ private void handleDirectCommand(String channel, String sender, String login, St\n         }\n     }\n \n+    private void sendFallbackMessage(String channel, String payload) {\n+        if(StringUtils.containsIgnoreCase(payload, \"thank\")) {\n+            sendMessage(channel, \"You're welcome\");\n+        }\n+        if(StringUtils.startsWithIgnoreCase(payload, \"hello\")) {\n+            sendMessage(channel, \"Hello you\");","path":"src/main/java/org/jenkinsci/backend/ircbot/IrcBotImpl.java","position":null,"original_position":35,"commit_id":"14994af86c5e8ae4c71a180e3d5396128fa40750","original_commit_id":"20c2a37c319f04e8ee347815384a30d1c893ba72","user":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"body":"done. good idea indeed. As for the bot infinite answering, hopefully we should be fine if nobody does it on purpose since the currently expectable cases of some bots sending messages are already ignored before reaching that code portion.","created_at":"2016-09-17T20:41:30Z","updated_at":"2016-09-17T20:41:30Z","html_url":"https://github.com/jenkins-infra/ircbot/pull/37#discussion_r79291591","pull_request_url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/comments/79291591"},"html":{"href":"https://github.com/jenkins-infra/ircbot/pull/37#discussion_r79291591"},"pull_request":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37","id":85624005,"html_url":"https://github.com/jenkins-infra/ircbot/pull/37","diff_url":"https://github.com/jenkins-infra/ircbot/pull/37.diff","patch_url":"https://github.com/jenkins-infra/ircbot/pull/37.patch","issue_url":"https://api.github.com/repos/jenkins-infra/ircbot/issues/37","number":37,"state":"open","locked":false,"title":"Introduce some involved AI in the answers","user":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-16T19:06:20Z","updated_at":"2016-09-17T20:41:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae2a27fe1cbd5f1fc4b250e17b640e760dd446a4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37/commits","review_comments_url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37/comments","review_comment_url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkins-infra/ircbot/issues/37/comments","statuses_url":"https://api.github.com/repos/jenkins-infra/ircbot/statuses/14994af86c5e8ae4c71a180e3d5396128fa40750","head":{"label":"batmat:ircbot-AI","ref":"ircbot-AI","sha":"14994af86c5e8ae4c71a180e3d5396128fa40750","user":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"repo":{"id":49164155,"name":"ircbot","full_name":"batmat/ircbot","owner":{"login":"batmat","id":223853,"avatar_url":"https://avatars.githubusercontent.com/u/223853?v=3","gravatar_id":"","url":"https://api.github.com/users/batmat","html_url":"https://github.com/batmat","followers_url":"https://api.github.com/users/batmat/followers","following_url":"https://api.github.com/users/batmat/following{/other_user}","gists_url":"https://api.github.com/users/batmat/gists{/gist_id}","starred_url":"https://api.github.com/users/batmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batmat/subscriptions","organizations_url":"https://api.github.com/users/batmat/orgs","repos_url":"https://api.github.com/users/batmat/repos","events_url":"https://api.github.com/users/batmat/events{/privacy}","received_events_url":"https://api.github.com/users/batmat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/batmat/ircbot","description":"Jenkins IRCbot","fork":true,"url":"https://api.github.com/repos/batmat/ircbot","forks_url":"https://api.github.com/repos/batmat/ircbot/forks","keys_url":"https://api.github.com/repos/batmat/ircbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/batmat/ircbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/batmat/ircbot/teams","hooks_url":"https://api.github.com/repos/batmat/ircbot/hooks","issue_events_url":"https://api.github.com/repos/batmat/ircbot/issues/events{/number}","events_url":"https://api.github.com/repos/batmat/ircbot/events","assignees_url":"https://api.github.com/repos/batmat/ircbot/assignees{/user}","branches_url":"https://api.github.com/repos/batmat/ircbot/branches{/branch}","tags_url":"https://api.github.com/repos/batmat/ircbot/tags","blobs_url":"https://api.github.com/repos/batmat/ircbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/batmat/ircbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/batmat/ircbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/batmat/ircbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/batmat/ircbot/statuses/{sha}","languages_url":"https://api.github.com/repos/batmat/ircbot/languages","stargazers_url":"https://api.github.com/repos/batmat/ircbot/stargazers","contributors_url":"https://api.github.com/repos/batmat/ircbot/contributors","subscribers_url":"https://api.github.com/repos/batmat/ircbot/subscribers","subscription_url":"https://api.github.com/repos/batmat/ircbot/subscription","commits_url":"https://api.github.com/repos/batmat/ircbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/batmat/ircbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/batmat/ircbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/batmat/ircbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/batmat/ircbot/contents/{+path}","compare_url":"https://api.github.com/repos/batmat/ircbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/batmat/ircbot/merges","archive_url":"https://api.github.com/repos/batmat/ircbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/batmat/ircbot/downloads","issues_url":"https://api.github.com/repos/batmat/ircbot/issues{/number}","pulls_url":"https://api.github.com/repos/batmat/ircbot/pulls{/number}","milestones_url":"https://api.github.com/repos/batmat/ircbot/milestones{/number}","notifications_url":"https://api.github.com/repos/batmat/ircbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/batmat/ircbot/labels{/name}","releases_url":"https://api.github.com/repos/batmat/ircbot/releases{/id}","deployments_url":"https://api.github.com/repos/batmat/ircbot/deployments","created_at":"2016-01-06T21:55:22Z","updated_at":"2016-01-06T21:55:23Z","pushed_at":"2016-09-17T20:37:57Z","git_url":"git://github.com/batmat/ircbot.git","ssh_url":"git@github.com:batmat/ircbot.git","clone_url":"https://github.com/batmat/ircbot.git","svn_url":"https://github.com/batmat/ircbot","homepage":"","size":235,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"jenkins-infra:master","ref":"master","sha":"12d0f0e2fd76348ec2fbfeacc674421d84aa335f","user":{"login":"jenkins-infra","id":7422698,"avatar_url":"https://avatars.githubusercontent.com/u/7422698?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkins-infra","html_url":"https://github.com/jenkins-infra","followers_url":"https://api.github.com/users/jenkins-infra/followers","following_url":"https://api.github.com/users/jenkins-infra/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-infra/subscriptions","organizations_url":"https://api.github.com/users/jenkins-infra/orgs","repos_url":"https://api.github.com/users/jenkins-infra/repos","events_url":"https://api.github.com/users/jenkins-infra/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-infra/received_events","type":"Organization","site_admin":false},"repo":{"id":1108234,"name":"ircbot","full_name":"jenkins-infra/ircbot","owner":{"login":"jenkins-infra","id":7422698,"avatar_url":"https://avatars.githubusercontent.com/u/7422698?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkins-infra","html_url":"https://github.com/jenkins-infra","followers_url":"https://api.github.com/users/jenkins-infra/followers","following_url":"https://api.github.com/users/jenkins-infra/following{/other_user}","gists_url":"https://api.github.com/users/jenkins-infra/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkins-infra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkins-infra/subscriptions","organizations_url":"https://api.github.com/users/jenkins-infra/orgs","repos_url":"https://api.github.com/users/jenkins-infra/repos","events_url":"https://api.github.com/users/jenkins-infra/events{/privacy}","received_events_url":"https://api.github.com/users/jenkins-infra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkins-infra/ircbot","description":"Jenkins IRCbot","fork":false,"url":"https://api.github.com/repos/jenkins-infra/ircbot","forks_url":"https://api.github.com/repos/jenkins-infra/ircbot/forks","keys_url":"https://api.github.com/repos/jenkins-infra/ircbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkins-infra/ircbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkins-infra/ircbot/teams","hooks_url":"https://api.github.com/repos/jenkins-infra/ircbot/hooks","issue_events_url":"https://api.github.com/repos/jenkins-infra/ircbot/issues/events{/number}","events_url":"https://api.github.com/repos/jenkins-infra/ircbot/events","assignees_url":"https://api.github.com/repos/jenkins-infra/ircbot/assignees{/user}","branches_url":"https://api.github.com/repos/jenkins-infra/ircbot/branches{/branch}","tags_url":"https://api.github.com/repos/jenkins-infra/ircbot/tags","blobs_url":"https://api.github.com/repos/jenkins-infra/ircbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkins-infra/ircbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkins-infra/ircbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkins-infra/ircbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkins-infra/ircbot/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkins-infra/ircbot/languages","stargazers_url":"https://api.github.com/repos/jenkins-infra/ircbot/stargazers","contributors_url":"https://api.github.com/repos/jenkins-infra/ircbot/contributors","subscribers_url":"https://api.github.com/repos/jenkins-infra/ircbot/subscribers","subscription_url":"https://api.github.com/repos/jenkins-infra/ircbot/subscription","commits_url":"https://api.github.com/repos/jenkins-infra/ircbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkins-infra/ircbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkins-infra/ircbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkins-infra/ircbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkins-infra/ircbot/contents/{+path}","compare_url":"https://api.github.com/repos/jenkins-infra/ircbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkins-infra/ircbot/merges","archive_url":"https://api.github.com/repos/jenkins-infra/ircbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkins-infra/ircbot/downloads","issues_url":"https://api.github.com/repos/jenkins-infra/ircbot/issues{/number}","pulls_url":"https://api.github.com/repos/jenkins-infra/ircbot/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkins-infra/ircbot/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkins-infra/ircbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkins-infra/ircbot/labels{/name}","releases_url":"https://api.github.com/repos/jenkins-infra/ircbot/releases{/id}","deployments_url":"https://api.github.com/repos/jenkins-infra/ircbot/deployments","created_at":"2010-11-24T06:09:37Z","updated_at":"2016-09-01T19:55:06Z","pushed_at":"2016-09-17T20:37:57Z","git_url":"git://github.com/jenkins-infra/ircbot.git","ssh_url":"git@github.com:jenkins-infra/ircbot.git","clone_url":"https://github.com/jenkins-infra/ircbot.git","svn_url":"https://github.com/jenkins-infra/ircbot","homepage":"","size":310,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":2,"forks":20,"open_issues":2,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37"},"html":{"href":"https://github.com/jenkins-infra/ircbot/pull/37"},"issue":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/issues/37"},"comments":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/jenkins-infra/ircbot/statuses/14994af86c5e8ae4c71a180e3d5396128fa40750"}}}}
{"actor":{"display_login":"batmat"}}