{"action":"closed","number":43,"pull_request":{"url":"https://api.github.com/repos/wakaba260/slappy/pulls/43","id":93481048,"html_url":"https://github.com/wakaba260/slappy/pull/43","diff_url":"https://github.com/wakaba260/slappy/pull/43.diff","patch_url":"https://github.com/wakaba260/slappy/pull/43.patch","issue_url":"https://api.github.com/repos/wakaba260/slappy/issues/43","number":43,"state":"closed","locked":false,"title":"Fix did not work monitor reaction_added RTM","user":{"login":"noir-neo","id":3272594,"avatar_url":"https://avatars.githubusercontent.com/u/3272594?v=3","gravatar_id":"","url":"https://api.github.com/users/noir-neo","html_url":"https://github.com/noir-neo","followers_url":"https://api.github.com/users/noir-neo/followers","following_url":"https://api.github.com/users/noir-neo/following{/other_user}","gists_url":"https://api.github.com/users/noir-neo/gists{/gist_id}","starred_url":"https://api.github.com/users/noir-neo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noir-neo/subscriptions","organizations_url":"https://api.github.com/users/noir-neo/orgs","repos_url":"https://api.github.com/users/noir-neo/repos","events_url":"https://api.github.com/users/noir-neo/events{/privacy}","received_events_url":"https://api.github.com/users/noir-neo/received_events","type":"User","site_admin":false},"body":"## Problem\r\n\r\nThis code does not run.\r\n\r\n```\r\nmonitor 'reaction_added' do |event|\r\n  puts event\r\nend\r\n```\r\n\r\n## Cause\r\n\r\nInvalid `time_valid?` \r\n\r\nThe event data has `['event_ts']` not `['ts']`\r\nhttps://api.slack.com/events/reaction_added\r\n\r\nand \r\n\r\n```\r\nirb(main):001:0> nil.to_f\r\n=> 0.0\r\nirb(main):002:0> Time.at(nil.to_f).nil?\r\n=> false\r\n```","created_at":"2016-11-13T18:14:41Z","updated_at":"2016-12-08T15:43:59Z","closed_at":"2016-12-08T15:43:59Z","merged_at":"2016-12-08T15:43:59Z","merge_commit_sha":"e458cdeaee9eb39ee55095bb6cb635354641481e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wakaba260/slappy/pulls/43/commits","review_comments_url":"https://api.github.com/repos/wakaba260/slappy/pulls/43/comments","review_comment_url":"https://api.github.com/repos/wakaba260/slappy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wakaba260/slappy/issues/43/comments","statuses_url":"https://api.github.com/repos/wakaba260/slappy/statuses/a3f037f1bdde447f634ba80a5202b7f5de6cce7e","head":{"label":"noir-neo:fix_reaction_rtm","ref":"fix_reaction_rtm","sha":"a3f037f1bdde447f634ba80a5202b7f5de6cce7e","user":{"login":"noir-neo","id":3272594,"avatar_url":"https://avatars.githubusercontent.com/u/3272594?v=3","gravatar_id":"","url":"https://api.github.com/users/noir-neo","html_url":"https://github.com/noir-neo","followers_url":"https://api.github.com/users/noir-neo/followers","following_url":"https://api.github.com/users/noir-neo/following{/other_user}","gists_url":"https://api.github.com/users/noir-neo/gists{/gist_id}","starred_url":"https://api.github.com/users/noir-neo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noir-neo/subscriptions","organizations_url":"https://api.github.com/users/noir-neo/orgs","repos_url":"https://api.github.com/users/noir-neo/repos","events_url":"https://api.github.com/users/noir-neo/events{/privacy}","received_events_url":"https://api.github.com/users/noir-neo/received_events","type":"User","site_admin":false},"repo":{"id":73625840,"name":"slappy","full_name":"noir-neo/slappy","owner":{"login":"noir-neo","id":3272594,"avatar_url":"https://avatars.githubusercontent.com/u/3272594?v=3","gravatar_id":"","url":"https://api.github.com/users/noir-neo","html_url":"https://github.com/noir-neo","followers_url":"https://api.github.com/users/noir-neo/followers","following_url":"https://api.github.com/users/noir-neo/following{/other_user}","gists_url":"https://api.github.com/users/noir-neo/gists{/gist_id}","starred_url":"https://api.github.com/users/noir-neo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noir-neo/subscriptions","organizations_url":"https://api.github.com/users/noir-neo/orgs","repos_url":"https://api.github.com/users/noir-neo/repos","events_url":"https://api.github.com/users/noir-neo/events{/privacy}","received_events_url":"https://api.github.com/users/noir-neo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noir-neo/slappy","description":"Simple slack bot framework.","fork":true,"url":"https://api.github.com/repos/noir-neo/slappy","forks_url":"https://api.github.com/repos/noir-neo/slappy/forks","keys_url":"https://api.github.com/repos/noir-neo/slappy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noir-neo/slappy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noir-neo/slappy/teams","hooks_url":"https://api.github.com/repos/noir-neo/slappy/hooks","issue_events_url":"https://api.github.com/repos/noir-neo/slappy/issues/events{/number}","events_url":"https://api.github.com/repos/noir-neo/slappy/events","assignees_url":"https://api.github.com/repos/noir-neo/slappy/assignees{/user}","branches_url":"https://api.github.com/repos/noir-neo/slappy/branches{/branch}","tags_url":"https://api.github.com/repos/noir-neo/slappy/tags","blobs_url":"https://api.github.com/repos/noir-neo/slappy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noir-neo/slappy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noir-neo/slappy/git/refs{/sha}","trees_url":"https://api.github.com/repos/noir-neo/slappy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noir-neo/slappy/statuses/{sha}","languages_url":"https://api.github.com/repos/noir-neo/slappy/languages","stargazers_url":"https://api.github.com/repos/noir-neo/slappy/stargazers","contributors_url":"https://api.github.com/repos/noir-neo/slappy/contributors","subscribers_url":"https://api.github.com/repos/noir-neo/slappy/subscribers","subscription_url":"https://api.github.com/repos/noir-neo/slappy/subscription","commits_url":"https://api.github.com/repos/noir-neo/slappy/commits{/sha}","git_commits_url":"https://api.github.com/repos/noir-neo/slappy/git/commits{/sha}","comments_url":"https://api.github.com/repos/noir-neo/slappy/comments{/number}","issue_comment_url":"https://api.github.com/repos/noir-neo/slappy/issues/comments{/number}","contents_url":"https://api.github.com/repos/noir-neo/slappy/contents/{+path}","compare_url":"https://api.github.com/repos/noir-neo/slappy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noir-neo/slappy/merges","archive_url":"https://api.github.com/repos/noir-neo/slappy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noir-neo/slappy/downloads","issues_url":"https://api.github.com/repos/noir-neo/slappy/issues{/number}","pulls_url":"https://api.github.com/repos/noir-neo/slappy/pulls{/number}","milestones_url":"https://api.github.com/repos/noir-neo/slappy/milestones{/number}","notifications_url":"https://api.github.com/repos/noir-neo/slappy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noir-neo/slappy/labels{/name}","releases_url":"https://api.github.com/repos/noir-neo/slappy/releases{/id}","deployments_url":"https://api.github.com/repos/noir-neo/slappy/deployments","created_at":"2016-11-13T15:52:11Z","updated_at":"2016-11-13T15:52:12Z","pushed_at":"2016-11-13T17:49:43Z","git_url":"git://github.com/noir-neo/slappy.git","ssh_url":"git@github.com:noir-neo/slappy.git","clone_url":"https://github.com/noir-neo/slappy.git","svn_url":"https://github.com/noir-neo/slappy","homepage":"","size":165,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"wakaba260:master","ref":"master","sha":"bdacbfce114b68f66e9f8ac00122e5be95f3a60d","user":{"login":"wakaba260","id":6162235,"avatar_url":"https://avatars.githubusercontent.com/u/6162235?v=3","gravatar_id":"","url":"https://api.github.com/users/wakaba260","html_url":"https://github.com/wakaba260","followers_url":"https://api.github.com/users/wakaba260/followers","following_url":"https://api.github.com/users/wakaba260/following{/other_user}","gists_url":"https://api.github.com/users/wakaba260/gists{/gist_id}","starred_url":"https://api.github.com/users/wakaba260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakaba260/subscriptions","organizations_url":"https://api.github.com/users/wakaba260/orgs","repos_url":"https://api.github.com/users/wakaba260/repos","events_url":"https://api.github.com/users/wakaba260/events{/privacy}","received_events_url":"https://api.github.com/users/wakaba260/received_events","type":"User","site_admin":false},"repo":{"id":45790991,"name":"slappy","full_name":"wakaba260/slappy","owner":{"login":"wakaba260","id":6162235,"avatar_url":"https://avatars.githubusercontent.com/u/6162235?v=3","gravatar_id":"","url":"https://api.github.com/users/wakaba260","html_url":"https://github.com/wakaba260","followers_url":"https://api.github.com/users/wakaba260/followers","following_url":"https://api.github.com/users/wakaba260/following{/other_user}","gists_url":"https://api.github.com/users/wakaba260/gists{/gist_id}","starred_url":"https://api.github.com/users/wakaba260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakaba260/subscriptions","organizations_url":"https://api.github.com/users/wakaba260/orgs","repos_url":"https://api.github.com/users/wakaba260/repos","events_url":"https://api.github.com/users/wakaba260/events{/privacy}","received_events_url":"https://api.github.com/users/wakaba260/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wakaba260/slappy","description":"Simple slack bot framework.","fork":false,"url":"https://api.github.com/repos/wakaba260/slappy","forks_url":"https://api.github.com/repos/wakaba260/slappy/forks","keys_url":"https://api.github.com/repos/wakaba260/slappy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wakaba260/slappy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wakaba260/slappy/teams","hooks_url":"https://api.github.com/repos/wakaba260/slappy/hooks","issue_events_url":"https://api.github.com/repos/wakaba260/slappy/issues/events{/number}","events_url":"https://api.github.com/repos/wakaba260/slappy/events","assignees_url":"https://api.github.com/repos/wakaba260/slappy/assignees{/user}","branches_url":"https://api.github.com/repos/wakaba260/slappy/branches{/branch}","tags_url":"https://api.github.com/repos/wakaba260/slappy/tags","blobs_url":"https://api.github.com/repos/wakaba260/slappy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wakaba260/slappy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wakaba260/slappy/git/refs{/sha}","trees_url":"https://api.github.com/repos/wakaba260/slappy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wakaba260/slappy/statuses/{sha}","languages_url":"https://api.github.com/repos/wakaba260/slappy/languages","stargazers_url":"https://api.github.com/repos/wakaba260/slappy/stargazers","contributors_url":"https://api.github.com/repos/wakaba260/slappy/contributors","subscribers_url":"https://api.github.com/repos/wakaba260/slappy/subscribers","subscription_url":"https://api.github.com/repos/wakaba260/slappy/subscription","commits_url":"https://api.github.com/repos/wakaba260/slappy/commits{/sha}","git_commits_url":"https://api.github.com/repos/wakaba260/slappy/git/commits{/sha}","comments_url":"https://api.github.com/repos/wakaba260/slappy/comments{/number}","issue_comment_url":"https://api.github.com/repos/wakaba260/slappy/issues/comments{/number}","contents_url":"https://api.github.com/repos/wakaba260/slappy/contents/{+path}","compare_url":"https://api.github.com/repos/wakaba260/slappy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wakaba260/slappy/merges","archive_url":"https://api.github.com/repos/wakaba260/slappy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wakaba260/slappy/downloads","issues_url":"https://api.github.com/repos/wakaba260/slappy/issues{/number}","pulls_url":"https://api.github.com/repos/wakaba260/slappy/pulls{/number}","milestones_url":"https://api.github.com/repos/wakaba260/slappy/milestones{/number}","notifications_url":"https://api.github.com/repos/wakaba260/slappy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wakaba260/slappy/labels{/name}","releases_url":"https://api.github.com/repos/wakaba260/slappy/releases{/id}","deployments_url":"https://api.github.com/repos/wakaba260/slappy/deployments","created_at":"2015-11-08T17:35:49Z","updated_at":"2016-10-22T17:46:46Z","pushed_at":"2016-12-08T15:43:59Z","git_url":"git://github.com/wakaba260/slappy.git","ssh_url":"git@github.com:wakaba260/slappy.git","clone_url":"https://github.com/wakaba260/slappy.git","svn_url":"https://github.com/wakaba260/slappy","homepage":"","size":172,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wakaba260/slappy/pulls/43"},"html":{"href":"https://github.com/wakaba260/slappy/pull/43"},"issue":{"href":"https://api.github.com/repos/wakaba260/slappy/issues/43"},"comments":{"href":"https://api.github.com/repos/wakaba260/slappy/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/wakaba260/slappy/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/wakaba260/slappy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wakaba260/slappy/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/wakaba260/slappy/statuses/a3f037f1bdde447f634ba80a5202b7f5de6cce7e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"wakaba260","id":6162235,"avatar_url":"https://avatars.githubusercontent.com/u/6162235?v=3","gravatar_id":"","url":"https://api.github.com/users/wakaba260","html_url":"https://github.com/wakaba260","followers_url":"https://api.github.com/users/wakaba260/followers","following_url":"https://api.github.com/users/wakaba260/following{/other_user}","gists_url":"https://api.github.com/users/wakaba260/gists{/gist_id}","starred_url":"https://api.github.com/users/wakaba260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakaba260/subscriptions","organizations_url":"https://api.github.com/users/wakaba260/orgs","repos_url":"https://api.github.com/users/wakaba260/repos","events_url":"https://api.github.com/users/wakaba260/events{/privacy}","received_events_url":"https://api.github.com/users/wakaba260/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"wakaba260"}}