X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=bot.py;h=d283db99ff338798409e5b9292b98d11447701d3;hb=bb9811987721c5443ec1b8f23a3bc47ac1604823;hp=35ac4a503a09e0e69e310fc8453c845305aa12b6;hpb=8050b8698ff1f6294abceb8b022a4aecdbe8375e;p=sid.git diff --git a/bot.py b/bot.py index 35ac4a5..d283db9 100644 --- a/bot.py +++ b/bot.py @@ -1,19 +1,22 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +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 = '53cr34' +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