Copied the mucbot from  SleekXMPP/examples/muc.py