Skip to main content

Class jabber bot on python

Install

pip install jabber-bot

Example

import xmpp
from jabber_bot import JabberBot

config = {
    'jid': 'username@jabber.org',
    '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)
bot.start()

License

MIT

Metadata

Release files for jabber-bot 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jabber-bot 0.1.1
File Size Uploaded
jabber-bot-0.1.1.tar.gz 1.0 kB Details

Release files / jabber-bot-0.1.1.tar.gz

Download URL jabber-bot-0.1.1.tar.gz
Size 1.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c47054bf582ee7dec1f11f36dff7eb86f9affee4c57f4dcdd8c4ce24efd3afdf
BLAKE2b-256 checksum
How to use checksums
ecd63fbce1ba73e223adfffffd5570baf366dd6d59ad1c898d6ea707310def4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page