gryf 16f60ee26d Use commandline tool for sending XMPP messages.
Loading sleekxmpp library with current Weechat version, causes to
highlightxmpp to fail. Probable reason is that sleekxmpp heavily uses
threading, while Weechat docs[1] clearly states, that threads shouldn't
be used.

[1] https://weechat.org/files/doc/stable/weechat_scripting.en.html#weechat_architecture
2021-01-02 19:39:34 +01:00

When loaded, this plugin will send you a message over XMPP (Jabber) when a
highlighted message or a private message is received. Great for running under
a detatched terminal where you're not always looking at your IRC window.

Requires SleekXMPP (`pip install sleekxmpp`)

Changelog:
 * 0.6:
   - switch from sleekxmpp to commandline utility sendxmpp 
     (https://github.com/lhost/sendxmpp) or go-sendxmpp 
     (https://salsa.debian.org/mdosch/go-sendxmpp).

 * 0.5:
   - switch to sleekxmpp as xmpp library (http://github.com/fritzy/SleekXMPP)

 * 0.4:
   - Actually fixed random XML appearing in messages.

 * 0.3:
   - Fixed message type to 'chat'; should fix problems with offline send
     and XML embedded in the message on some receivers
   - Updated notes for using an XMPP resource
   - Removed "failed to send" notification, as it's normal flow


 You must configure this plugin before using:

   JID messages are sent from:
     /set plugins.var.python.highlightxmpp.jid someid@jabber.org
   alternatively, to use a specific resource:
     /set plugins.var.python.highlightxmpp.jid someid@jabber.org/resource

   Password for the above JID:
     /set plugins.var.python.highlightxmpp.password abcdef

   JID messages are sent *to* (if not set, defaults to the same jid as above):
     /set plugins.var.python.highlightxmpp.to myid@jabber.org
Description
a small script to ping you on jabber when you get a highlight (maintenance mode; PRs welcome)
Readme 108 KiB
Languages
Python 100%