sid/sid-gemgraph.py

24 lines
497 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_gemgraph
2021-03-31 00:56:09 +02:00
JID = 'sid@a-lec.org'
ROOM = 'awagij@salons.a-lec.org'
2021-11-11 15:23:09 +01:00
NICK = 'sid'
PASS = 'botvote'
2021-03-31 00:56:09 +02:00
# Instanciate the bot
xmpp = MUCBot(JID, PASS, ROOM, NICK)
# Register a plugin
xmpp.register_bot_plugin(Ping)
2021-11-11 15:23:09 +01:00
xmpp.register_bot_plugin(Feeds_gemgraph.Feeds)
2021-03-31 00:56:09 +02:00
# Connect to the XMPP server and start processing XMPP stanzas.
try:
xmpp.connect()
xmpp.process()
except KeyboardInterrupt:
xmpp.shutdown_plugins()