sid/sid-emooji.py

24 lines
503 B
Python

import getpass
from sid.sid import MUCBot
from sid.ping import Ping
import Feeds_emooji
JID = 'KBot@os-k.eu'
ROOM = 'emooji@conference.os-k.eu'
NICK = 'emooji-bot'
PASS = 'botbotbot'
# 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()