#!/usr/bin/env python2.7
# coding: utf-8

import inspect
import logging
logging.basicConfig()
import time
import uuid

from comicsbot import ComicsBot
from dokuwiki import DokuWiki
from roomlogger import RoomLogger

execfile("config.py")

w = DokuWiki()
if w.dokuwiki.login(config["dokuwiki"]["username"],
        config["dokuwiki"]["password"]):
    welcome_message = "Hello! I've connected to wiki %s version %s, " \
        "xmlrpc %s" % (w.dokuwiki.getTitle(), w.dokuwiki.getVersion(),
                w.dokuwiki.getXMLRPCAPIVersion())
else:
    welcome_message = "Hi! I cannot authorize to the wiki."
    w = None

room_logger = RoomLogger(config["jabber"]["logdir"])

bot = ComicsBot(config["jabber"]["username"],
        config["jabber"]["password"], wiki=w,
        room_logger=room_logger, res=uuid.uuid1())
bot.join_room(config["jabber"]["room"], config["jabber"]["nick"])
time.sleep(1)
bot.send(config["jabber"]["room"], welcome_message, message_type="groupchat")
bot.serve_forever()

#!/usr/bin/env python2.7
# coding: utf-8

import inspect
import logging
logging.basicConfig(level=logging.DEBUG)
import time
import uuid

from comicsbot import ComicsBot
from dokuwiki import DokuWiki
from roomlogger import RoomLogger

execfile("config.py")

w = DokuWiki()
if w.dokuwiki.login(config["dokuwiki"]["username"],
        config["dokuwiki"]["password"]):
    welcome_message = "Hello! I've connected to wiki %s version %s, " \
        "xmlrpc %s" % (w.dokuwiki.getTitle(), w.dokuwiki.getVersion(),
                w.dokuwiki.getXMLRPCAPIVersion())
else:
    welcome_message = "Hi! I cannot authorize to the wiki."
    w = None

room_logger = RoomLogger(config["jabber"]["logdir"])

bot = ComicsBot(config["jabber"]["username"],
        config["jabber"]["password"], wiki=w,
        room_logger=room_logger, res=uuid.uuid1())
bot.join_room(config["jabber"]["room"], config["jabber"]["nick"])
time.sleep(1)
bot.send(config["jabber"]["room"], welcome_message, message_type="groupchat")
bot.serve_forever()

Enable debug logging for xmpppy