2 # -*- coding: utf-8 -*-
4 from sid.sid import MUCBot
5 from sid.echo import Echo
6 from sid.feeds import Feeds
8 JID = 'bot@example.org'
11 ROOM = 'room@conf.example.org'
15 xmpp = MUCBot(JID, PASS, ROOM, NICK)
16 xmpp.register_bot_plugin(Feeds)
17 # Connect to the XMPP server and start processing XMPP stanzas.
19 # If you do not have the dnspython library installed, you will need
20 # to manually specify the name of the server if it does not match
21 # the one in the JID. For example, to use Google Talk you would
24 # if xmpp.connect(('talk.google.com', 5222)):
26 xmpp.process(block=True)
27 xmpp.shutdown_plugins()
30 xmpp.log.info('Unable to connect.')
33 if __name__ == '__main__':
37 # vim: ai ts=4 sw=4 sts=4 expandtab