__module_name__ = "say hi xchat" __module_version__ = "1.0" __module_description__ = "mrmondays first script!" import xchat mychan = xchat.find_context(server='chat.freenode.net', channel='#xchat' def msg-chan(): mychan.command('say Hi!, this is my first XChat script! :)') xchat.hook_print("Channel Message", msg-chan)