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 Get the source with git::
19 git clone git://git.kaliko.me/sid.git
21 Install/update master from git::
23 pip install -U git+https://gitlab.com/kaliko/sid.git@master#egg=sid
28 Here is a plain example::
30 #!/usr/bin/env python3
31 # -*- coding: utf-8 -*-
35 from sid.sid import MUCBot
36 from sid.ping import Ping
38 logging.basicConfig(level=logging.INFO,
39 format='%(levelname)-8s %(message)s')
41 JID = 'bot@example.org'
42 ROOM = 'room@conf.example.org'
43 # Pay attention: if you join the room with the same account/nick,
44 # For instance with a regular interactive client, the bot will
45 # not answer you, it ignores its own messages for obvious reasons.
47 PASS = getpass.getpass(f'Password for "{JID}": ')
50 xmpp = MUCBot(JID, PASS, ROOM, NICK)
52 xmpp.register_bot_plugin(Ping)
54 # Connect to the XMPP server and start processing XMPP stanzas.
58 except KeyboardInterrupt:
59 xmpp.shutdown_plugins()
65 The current maintainer can be found on xmpp chat room <kaliko.me⊘conf.azylum.org>
66 or you can contact him by email/xmpp <kaliko⊘azylum.org>.
68 .. _PyPI: https://pypi.org