import getpass from sid.sid import MUCBot from sid.ping import Ping import Feeds_gemgraph JID = 'sid@a-lec.org' ROOM = 'awagij@salons.a-lec.org' NICK = 'sid' PASS = 'botvote' # Instanciate the bot xmpp = MUCBot(JID, PASS, ROOM, NICK) # Register a plugin xmpp.register_bot_plugin(Ping) xmpp.register_bot_plugin(Feeds_gemgraph.Feeds) # Connect to the XMPP server and start processing XMPP stanzas. try: xmpp.connect() xmpp.process() except KeyboardInterrupt: xmpp.shutdown_plugins()