XMPP bot
A plain XMPP bot built on top of slixmpp, easily extendable (plugin system).
- Sphinx documentation kaliko.gitlab.io/sid/
- git clone https://gitlab.com/kaliko/sid.git
- Not yet released on pip (sid name space in not available on pypi though – 2020)
Usage
There is no higher level interface, configuring and launching the bot boils down to some python code:
import getpass
from sid.sid import MUCBot
from sid.ping import Ping
JID = 'bot@example.org'
NICK = 'sid'
PASS = getpass.getpass('Password for "{}": '.format(JID))
ROOM = 'room@conf.example.org'
xmpp = MUCBot(JID, PASS, ROOM, NICK)
xmpp.register_bot_plugin(Ping)
try:
xmpp.connect()
xmpp.process()
except KeyboardInterrupt:
xmpp.shutdown_plugins()
xmpp.log.info('Done')
page last updated: Sat 18 Dec 2021