sid-xmpp-bot/sid-emooji.py

24 lines
503 B
Python
Raw Permalink Normal View History

2021-03-31 00:56:09 +02:00
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()