#!/usr/bin/env python
# -*- coding: utf-8 -*-
import xmpp
import sys
jid = 'your-jid@example.com'
server = None # Если отличается, поменяешь сам
password = '************'
resource = 'Anywhere (juick-it)'
jid = xmpp.JID(jid)
cl = xmpp.Client(server if server else jid.getDomain(), debug=[])
if not cl.connect():
print 'failed to connect'
sys.exit(1)
if not cl.auth(jid.getNode(), password, resource):
print 'failed to auth'
sys.exit(1)
#cl.sendInitPresence() # Мы не хотим палиться %)
cl.send(xmpp.Message('juick@juick.com', ' '.join(sys.argv[1:])))
cl.Process(1)
cl.disconnect()