view MoinMoin/jabber/main.py @ 2067:3ca2b7065a05

Jabber bot - the beginning. Ommited the necessary config file, because it currently holds private information about jabber account used for testing. Will be added later.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Thu, 31 May 2007 01:05:09 +0200
parents
children 7e2a9b7d2bc6
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - jabber bot main file

    This is a bot for notification and simple editing
    operations. Developed as a Google Summer of Code 
    project.

@copyright: 2007 by Karol Nowak <grywacz@gmail.com>
@license: GNU GPL, see COPYING for details.
"""

import sys
from config import JabberConfig
from xmppbot import XMPPBot
from Queue import Queue

def main():
    commands = Queue()
    results = Queue()
    
    try:
        bot = XMPPBot(JabberConfig, commands, results)
        bot.start()
    
    except KeyboardInterrupt, i:
        print i
        sys.exit(0)

if __name__ == "__main__": main()