Simple On Join Script For Xchat

By AnaBotNowYourGone on Jun 06, 2010

I'm kind of new to scripting Xchat with python. But this is a simple "On Join" script for Xchat.

__module_name__ = "AnaBotNowYourGone's On Join Script For Xchat" 
__module_version__ = "Script Version 1.0" 
__module_description__ = "An on join sort of script for xchat"

print "\0034",__module_name__, __module_version__,__module_description__,"!\003"

import xchat

def on_join(word, word_eol, userdata):
      triggernick, triggerchannel, triggerhost = word
      destination = xchat.get_context()
      destination.command("say Hi " + triggernick + " and welcome to this channel! This channel is called " + triggerchannel + " Enjoy your stay!")

xchat.hook_print('Join', on_join)


Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.