8 Currently unreleased on PyPi_.
10 `git tagged` version and `master branch` should be stable though.
12 * Doc: https://kaliko.gitlab.io/sid/
13 * git: https://gitlab.com/kaliko/sid.git
14 * Issue: https://gitlab.com/kaliko/sid/-/issues
17 Install/update master from git::
19 pip install -U git+https://gitlab.com/kaliko/sid.git@master#egg=sid
24 Here is a plain example::
26 #!/usr/bin/env python3
27 # -*- coding: utf-8 -*-
31 from sid.sid import MUCBot
32 from sid.ping import Ping
34 logging.basicConfig(level=logging.INFO,
35 format='%(levelname)-8s %(message)s')
37 JID = 'bot@example.org'
38 ROOM = 'room@conf.example.org'
39 # Pay attention: if you join the room with the same account/nick,
40 # For instance with a regular interactive client, the bot will
41 # not answer you, it ignores its own messages for obvious reasons.
43 PASS = getpass.getpass(f'Password for "{JID}": ')
46 xmpp = MUCBot(JID, PASS, ROOM, NICK)
48 xmpp.register_bot_plugin(Ping)
50 # Connect to the XMPP server and start processing XMPP stanzas.
54 except KeyboardInterrupt:
55 xmpp.shutdown_plugins()
61 The current maintainer can be found on xmpp chat room <kaliko.me⊘conf.azylum.org>
62 or you can contact him by email/xmpp <kaliko⊘azylum.org>.
64 .. _PyPI: https://pypi.org