Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
set_caps "http://yourdomain.com[or something else unique to identify your software]", [{:name => "somename", :type => "bot", :category => "client"}], ["http://jabber.org/protocol/si/profile/file-transfer"]
send_caps
@dreness

This comment has been minimized.

Copy link

commented Aug 18, 2013

This didn't quite do it for me; I needed to specify the following capabilities:

<feature var="http://jabber.org/protocol/ibb"/>
<feature var="http://jabber.org/protocol/bytestreams"/>
<feature var="http://jabber.org/protocol/si"/>
<feature var="http://jabber.org/protocol/si/profile/file-transfer"/>

Here's a working example bot that receives files: https://gist.github.com/dreness/6261903#file-filesink-rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.