X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=bot.py;h=d283db99ff338798409e5b9292b98d11447701d3;hp=42644bc457b77e85ee7016404ff4ca9cfc2b3cc7;hb=HEAD;hpb=c9ab21033e38ef1bb121099038a55253032423fe diff --git a/bot.py b/bot.py deleted file mode 100644 index 42644bc..0000000 --- a/bot.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- - -import getpass - -from sid.sid import MUCBot -from sid.ping import Ping -from sid.feeds import Feeds - -JID = 'bot@example.org' -NICK = 'sid' -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) - try: - xmpp.connect() - xmpp.process() - except KeyboardInterrupt: - xmpp.shutdown_plugins() - xmpp.log.info('Done') - -# Script starts here -if __name__ == '__main__': - main() - -# VIM MODLINE -# vim: ai ts=4 sw=4 sts=4 expandtab