Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created June 9, 2011 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benlangfeld/1016487 to your computer and use it in GitHub Desktop.
Save benlangfeld/1016487 to your computer and use it in GitHub Desktop.
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
Copy link

dreness 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