Jabber/XMPP conference bot & framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brathuhn/main.py

28 lines
485 B

#!/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()