old_contents: #!/usr/bin/env python2.7
  # coding: utf-8
  
  import inspect
  import logging
  logging.basicConfig()
  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 version %s, " \
          "xmlrpc %s" % (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"], debug=True, wiki=w,
          room_logger=room_logger, res=uuid.uuid1())
  bot.join_room(config["jabber"]["room"], config["jabber"]["nick"])
  bot.send(config["jabber"]["room"], welcome_message, message_type="groupchat")
  bot.serve_forever()
  
new_contents: #!/usr/bin/env python2.7
  # coding: utf-8
  
  import inspect
  import logging
  logging.basicConfig()
  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"], debug=True, wiki=w,
          room_logger=room_logger, res=uuid.uuid1())
  bot.join_room(config["jabber"]["room"], config["jabber"]["nick"])
  bot.send(config["jabber"]["room"], welcome_message, message_type="groupchat")
  bot.serve_forever()
  
subject: Add wiki title to bot's welcome message