X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=bot.py;h=d283db99ff338798409e5b9292b98d11447701d3;hp=35ac4a503a09e0e69e310fc8453c845305aa12b6;hb=HEAD;hpb=8050b8698ff1f6294abceb8b022a4aecdbe8375e diff --git a/bot.py b/bot.py deleted file mode 100644 index 35ac4a5..0000000 --- a/bot.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- - -from sid.sid import MUCBot -from sid.echo import Echo -from sid.feeds import Feeds - -JID = 'bot@example.org' -NICK = 'sid' -PASS = '53cr34' -ROOM = 'room@conf.example.org' - -def main(): - Feeds.TEMPO = 60 - xmpp = MUCBot(JID, PASS, ROOM, NICK) - xmpp.register_bot_plugin(Feeds) - # 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 - # to manually specify the name of the server if it does not match - # the one in the JID. For example, to use Google Talk you would - # need to use: - # - # if xmpp.connect(('talk.google.com', 5222)): - # ... - xmpp.process(block=True) - xmpp.shutdown_plugins() - xmpp.log.info('Done') - else: - xmpp.log.info('Unable to connect.') - -# Script starts here -if __name__ == '__main__': - main() - -# VIM MODLINE -# vim: ai ts=4 sw=4 sts=4 expandtab