#!/usr/bin/python # -*- coding: utf-8 -*- import brathuhn import stream_ft,xmpp import kraken import get_quote import logger import cowsay import choose import tantrum import tell import last_active def foo(msg,args): cim = stream_ft.create_init_message(brathuhn.room_nick,msg.getFrom(),"brathuhn.py") brathuhn.cl.send(cim) brathuhn.addPrivateCommand("foo","asdasdasd",foo) brathuhn.connect_and_join() brathuhn.cl.RegisterHandler('iq',stream_ft.ft_listener) brathuhn.loop()