sid/sid-gemgraph.py

24 lines
492 B
Python

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-bot'
PASS = ''
# Instanciate the bot
xmpp = MUCBot(JID, PASS, ROOM, NICK)
# Register a plugin
xmpp.register_bot_plugin(Ping)
xmpp.register_bot_plugin(Feeds_emooji.Feeds)
# Connect to the XMPP server and start processing XMPP stanzas.
try:
xmpp.connect()
xmpp.process()
except KeyboardInterrupt:
xmpp.shutdown_plugins()