Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Animated GIF of latest World Cup Goal in Slack and Hipchat (github.com/xdamman)
97 points by xdamman on July 3, 2014 | hide | past | favorite | 22 comments


Not sure how the webhooks are supposed to work? Pressing test seems to produce an empty POST: http://requestb.in/11fvs2r1?inspect

Would like to integrate this in my irc bot, but need to know the format to expect.


This is how I send the data to a default webhook https://github.com/xdamman/ReplayLastGoal/blob/master/hooks/...

It's being sent as a classic POST request. You should be getting the following attributes: text=Goal for Belgium! #URU 1-1 #ENG #WorldCup \nπŸ“ΊVideo: gif=http://replaylastgoal.com/videos/2014-06-19-20-31-24.gif video=... ...

See also https://github.com/xdamman/ReplayLastGoal/blob/master/test/h...


Thanks! Got it working I think. The test worked, and I saved and it told me the hook was activated, though I received no notification for the german goal. Maybe I was a bit too late, since I only registered several minutes before the goal happened.


No POSTs for any of the other goals :(


Thanks for reporting. I'll fix this bug later today when I'm back at a computer. More than 100 teams got the notifications during the game Belgium USA so it's working.


Ok so I'm finally back on a computer. There are 158 webhooks registered. The ones for hipchat are mostly activated, but only a few for Slack are. Weird. Anyway, you should have received a link with the following format: http://replaylastgoal.com/hooks/activate?service=slack&id=ab... Replace id with your id and that should work. Not sure what happened. Still investigating. Ping me on twitter @xdamman or gmail (same username) if you are still experiencing an issue when trying to activate your hook. I'll send a reminder to activate the hook for the ones that haven't been activated by tomorrow before the game.


I tried to activate a hook for slack (after a test goal showed up in our chatroom correctly) only to be told that that integration could not be found.

http://replaylastgoal.com/hooks/activate?service=slack&id=2a...


Same here with the Slack integration: clicked on the link and got a "We couldn't find any hook with this id" response back.


thanks, :( where do I get the id for slack? I see a token in my webhook integration but alas no id.


I was referring to the id that I give you after you fill out the form to add your hook.

Don't worry, if you send me the webhook url I can also find it back in the db and activate it for you.


Seems to be working now. I just refreshed the page a few (10) minutes later. {"code":200,"status":"Hook activated"}


what did you do about the fifa takedown request? Ignore it?


They didn't send me a take down request. They've only sent it to Twitter and Twitter didn't take the account down (yet). It looks like they pushed back and asked them to specify which tweets were infringing, leading to the removal of animated gif in some tweets 24-48h after they were sent. See also https://storify.com/xdamman/replaylastgoal-reactions-to-fifa...


I'd love to try and get gfycat support for this.


really cool, but the hipchat integration doesn't seem to work for me


fwiw I was able to get a test post working in Slack and the Save seemed to work, but the confirmation link in Slack 404'd.


Sorry for the inconvenience! See my comments above. Please let me know if you are still experiencing this issue. You can also just let me know the id you received and I can activate it for you.


It's working now! hooray!


Yeah same

{"code":404,"status":"Not found","error":"We couldn't find any hook with this id"}


Second'd


Same


erm




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: