Merge branch 'master' of git.sr.ht:~michalr/xmpp-toolbox
Updated xmpp module 0.3.0 -> 0.4.0
Disclaimer: I am pretty new to golang, so the code is probably of low quality. Please point out problems and my mistakes on the mailing list. Thanks!
Simple XMPP tool that has two purposes:
Both of those functionalities have to be explicitly enabled on the command line:
Usage of ./xmpp-toolbox: -listen If specified, will connect to XMPP and print incoming messages to the console -recipent string If specified, a messages from STDIN will be sent to provided JID
-recipentis used in the command line,
-recipentcommand line option being used, program terminates when EOF is encountered on the standard input.
Program reads the server, JID and password from the following environment variables:
There are multiple options where to go from there. My suggestion would be to create a file like the following and
source it before executing the toolbox:
export XMPP_SERVER="server.tld" export XMPP_USERNAME="firstname.lastname@example.org" export XMPP_PASSWORD="password"
Automatically built binaries: