will icon indicating copy to clipboard operation
will copied to clipboard

Can Will catch video chat request?

Open digitalfiz opened this issue 8 years ago • 5 comments

My co-workers were joking about being able to count how many days its been since the last time someone hit the video call button so naturally I wanted to add it to our bot.

I don't see anywhere in the documentation for this so is it possible?

digitalfiz avatar Aug 23 '17 15:08 digitalfiz

Not sure if it's possible - mind checking into the Hipchat API docs to see? Open to a PR that would abstract this and make it available.

skoczen avatar Sep 29 '17 01:09 skoczen

It can :)

HipChat nowadays generates a message like this for a video chat. Pretty easy to catch it the message.

日, 08 10月 2017 13:34:31 [DEBUG] RECV: <message from="[email protected]/Adam Papai" type="groupchat" mid="xxx" ts="1507437270.999521" to="[email protected]/bot||proxy|pubproxy-b600.hipchat.com|5262"><body>&lt;a href=&quot;https://hipchat.com/video/call/xxx?&quot;&gt;Click here to join the video call&lt;/a&gt;</body><x xmlns="http://hipchat.com/protocol/muc#room"><type>system</type><notify>1</notify><color>purple</color><message_format>html</message_format><card><raw>{&quot;style&quot;: &quot;link&quot;, &quot;description&quot;: &quot;Adam Papai has started a room video call. Click the link above to join the call.&quot;, &quot;title&quot;: &quot;Click here to join the video call&quot;, &quot;url&quot;: &quot;https://hipchat.com/video/call/xxx?&quot;, &quot;validation&quot;: {&quot;safehtmls&quot;: [&quot;activity.html&quot;], &quot;safeurls&quot;: [&quot;url&quot;, &quot;images.image&quot;, &quot;images.image-small&quot;, &quot;images.image-big&quot;, &quot;icon.url&quot;, &quot;icon.url@2x&quot;, &quot;icon&quot;, &quot;thumbnail.url@2x&quot;, &quot;thumbnail.url&quot;]}, &quot;id&quot;: &quot;2720213&quot;, &quot;icon&quot;: &quot;https://dujrsrsgsd3nh.cloudfront.net/img/hipchat_video_thumb.png&quot;}</raw></card><notification_sender type="user" id="[email protected]/web||proxy|proxy-d611.hipchat.com|5262" /></x><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><a href="https://hipchat.com/video/call/xxx?">Click here to join the video call</a></body></html></message>

So maybe a @hear for *https://hipchat.com/video* would do the trick.

woohgit avatar Oct 08 '17 04:10 woohgit

I double checked it. As an XMPP client, we only see this text:

Someone: <a href="https://hipchat.com/video/call/xxx?">Click here to join the video call</a>

I'm sending a PR soon.

woohgit avatar Oct 08 '17 05:10 woohgit

Nice! I do wonder if this is common enough functionality that it's worth bundling in to core. (This is the kind of place where the future app library will make things so much easier.)

Thoughts, @woohgit @digitalfiz ?

skoczen avatar Oct 09 '17 21:10 skoczen

If there are no further comments, I will close out this issue due to inactivity.

wontonst avatar Jan 29 '19 22:01 wontonst