

import urllib

def command_oraakkeli(bot, user, channel, args):
    """Asks a question from the oracle (http://www.lintukoto.net/viihde/oraakkeli/)"""
    if not args: return

    args = urllib.quote_plus(args)

    answer = getUrl("http://www.lintukoto.net/viihde/oraakkeli/index.php?kysymys=%s&html=0" % args).getContent()

    bot.say(channel, "Oraakkeli vastaa: %s" % answer)

@@ -321,16 +321,86 @@
 tent()%0A%0A
+    answer = unicode(answer)%0A    answer = answer.encode(%22utf-8%22)%0A    %0A
     bot.

Update oracle module for UTF-8