Skip to main content


Project description

Class jabber bot on python


pip install jabber-bot


import xmpp
from jabber_bot import JabberBot

config = {
    'jid': '',
    'pass': 'pass'

def message_handler(conn, mess):
    text = mess.getBody()
    user = mess.getFrom()
    reply = text
    conn.send(xmpp.Message(mess.getFrom(), reply))

bot = JabberBot(config['jid'], config['pass'])
bot.register_handler('message', message_handler)



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jabber-bot, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size jabber-bot-0.1.1.tar.gz (1.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page