X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=bot.py;h=d283db99ff338798409e5b9292b98d11447701d3;hb=685ca532c5f30b41da003878cbfca8183b4965b7;hp=e02d96fa744a433ff61e2d461f910f0be830ddf5;hpb=ee38f3ae1e801fd160978b2c5804d4cc056683f6;p=sid.git diff --git a/bot.py b/bot.py index e02d96f..d283db9 100644 --- a/bot.py +++ b/bot.py @@ -4,18 +4,19 @@ import getpass from sid.sid import MUCBot -from sid.echo import Echo +from sid.ping import Ping from sid.feeds import Feeds JID = 'bot@example.org' NICK = 'sid' -PASS = getpass.getpass('Password: ') +PASS = getpass.getpass('Password for "{}": '.format(JID)) ROOM = 'room@conf.example.org' def main(): Feeds.TEMPO = 60 xmpp = MUCBot(JID, PASS, ROOM, NICK) xmpp.register_bot_plugin(Feeds) + xmpp.register_bot_plugin(Ping) # Connect to the XMPP server and start processing XMPP stanzas. if xmpp.connect(): # If you do not have the dnspython library installed, you will need