Thursday, October 21, 2004

Xchat hello abused...

To implement the social commands in FlickrLive.

__module_name__ = "flickr" 
__module_version__ = "1.0" 
__module_description__ = "flickr social commands" 
 
import xchat

otheruser = "This social command requires the name of another user"

command_list = """
/apologize
/applaud
/blink
/blush
/bounce
/brood
/comfort
/cough
/cringe
/evileye
/flirt
/frown
/giggle
/goose
/groan
/highfive
/hit
/hug
/kiss
/laugh
/lick
/massage
/nudge
/pinch
/pout
/punch
/shrug
/smile
/spank
/tickle
/wave
/wink
"""

def apologize_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME apologizes to %s" % word_eol[1])
	return xchat.EAT_NONE

def applaud_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME applauds %s" % word_eol[1])
	return xchat.EAT_NONE

def blink_cb(word, word_eol, userdata):
	xchat.command("ME blinks")
	return xchat.EAT_NONE

def blush_cb(word, word_eol, userdata):
	xchat.command("ME blushes")
	return xchat.EAT_NONE

def bounce_cb(word, word_eol, userdata):
	xchat.command("ME bounces")
	return xchat.EAT_NONE

def brood_cb(word, word_eol, userdata):
	xchat.command("ME broods")
	return xchat.EAT_NONE

def comfort_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME comforts %s" % word_eol[1])
	return xchat.EAT_NONE

def commands_cb(word, word_eol, userdata):
	print command_list
	return xchat.EAT_NONE

def cough_cb(word, word_eol, userdata):
	xchat.command("ME coughs")
	return xchat.EAT_NONE

def cringe_cb(word, word_eol, userdata):
	xchat.command("ME cringes")
	return xchat.EAT_NONE

def evileye_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME gives %s the evil eye" % word_eol[1])
	return xchat.EAT_NONE

def flirt_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME flirts with %s" % word_eol[1])
	return xchat.EAT_NONE

def frown_cb(word, word_eol, userdata):
	xchat.command("ME frowns")
	return xchat.EAT_NONE

def giggle_cb(word, word_eol, userdata):
	xchat.command("ME giggles")
	return xchat.EAT_NONE

def goose_cb(word, word_eol, userdata):
	print "WTF?"
	return xchat.EAT_NONE

def groan_cb(word, word_eol, userdata):
	xchat.command("ME groans")
	return xchat.EAT_NONE

def highfive_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME gives %s a high five" % word_eol[1])
	return xchat.EAT_NONE

def hit_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME hits %s" % word_eol[1])
	return xchat.EAT_NONE

def hug_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME hugs %s" % word_eol[1])
	return xchat.EAT_NONE

def kiss_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME kisses %s" % word_eol[1])
	return xchat.EAT_NONE


def laugh_cb(word, word_eol, userdata):
	xchat.command("ME laughs")
	return xchat.EAT_NONE

def lick_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME licks %s" % word_eol[1])
	return xchat.EAT_NONE

def massage_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME massages %s" % word_eol[1])
	return xchat.EAT_NONE

def nudge_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME nudges %s" % word_eol[1])
	return xchat.EAT_NONE

def pinch_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME pinches %s" % word_eol[1])
	return xchat.EAT_NONE

def pout_cb(word, word_eol, userdata):
	xchat.command("ME shrugs")
	return xchat.EAT_NONE

def punch_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME punches %s" % word_eol[1])
	return xchat.EAT_NONE

def shrug_cb(word, word_eol, userdata):
	xchat.command("ME shrugs")
	return xchat.EAT_NONE

def smile_cb(word, word_eol, userdata):
	xchat.command("ME smiles")
	return xchat.EAT_NONE

def spank_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME spanks %s" % word_eol[1])
	return xchat.EAT_NONE

def tickle_cb(word, word_eol, userdata):
	if len(word) < 2:
		print otheruser
	else:
		xchat.command("ME tickles %s" % word_eol[1])
	return xchat.EAT_NONE

def wave_cb(word, word_eol, userdata):
	if len(word) < 2:
		xchat.command("ME waves")
	else:
		xchat.command("ME waves to %s" % word_eol[1])
	return xchat.EAT_NONE

def wink_cb(word, word_eol, userdata):
	xchat.command("ME winks")
	return xchat.EAT_NONE

xchat.hook_command("apologize", apologize_cb, help="Use /commands for more information")
xchat.hook_command("applaud", applaud_cb, help="Use /commands for more information")
xchat.hook_command("blink", blink_cb, help="Use /commands for more information")
xchat.hook_command("bounce", bounce_cb, help="Use /commands for more information")
xchat.hook_command("brood", brood_cb, help="Use /commands for more information")
xchat.hook_command("comfort", comfort_cb, help="Use /commands for more information")
xchat.hook_command("commands", commands_cb, help="Use /commands for more information")
xchat.hook_command("cough", cough_cb, help="Use /commands for more information")
xchat.hook_command("cringe", cringe_cb, help="Use /commands for more information")
xchat.hook_command("evileye", evileye_cb, help="Use /commands for more information")
xchat.hook_command("flirt", _cb, help="Use /commands for more information")
xchat.hook_command("frown", frown_cb, help="Use /commands for more information")
xchat.hook_command("giggle", giggle_cb, help="Use /commands for more information")
xchat.hook_command("goose", goose_cb, help="Use /commands for more information")
xchat.hook_command("groan", groan_cb, help="Use /commands for more information")
xchat.hook_command("highfive", highfive_cb, help="Use /commands for more information")
xchat.hook_command("hit", hit_cb, help="Use /commands for more information")
xchat.hook_command("hug", hug_cb, help="Use /commands for more information")
xchat.hook_command("kiss", kiss_cb, help="Use /commands for more information")
xchat.hook_command("laugh", laugh_cb, help="Use /commands for more information")
xchat.hook_command("lick", lick_cb, help="Use /commands for more information")
xchat.hook_command("massage", massage_cb, help="Use /commands for more information")
xchat.hook_command("nudge", nudge_cb, help="Use /commands for more information")
xchat.hook_command("pinch", pinch_cb, help="Use /commands for more information")
xchat.hook_command("pout", pout_cb, help="Use /commands for more information")
xchat.hook_command("punch", punch_cb, help="Use /commands for more information")
xchat.hook_command("shrug", shrug_cb, help="Use /commands for more information")
xchat.hook_command("smile", smile_cb, help="Use /commands for more information")
xchat.hook_command("spank", spank_cb, help="Use /commands for more information")
xchat.hook_command("tickle", tickle_cb, help="Use /commands for more information")
xchat.hook_command("wave", wave_cb, help="Use /commands for more information")
xchat.hook_command("wink", wink_cb, help="Use /commands for more information")
I used FlickrLive a few days ago, and got a nice testimonial from Meer:
"It was a chance meeting in the night--day--like two ships sometimes do before they hit the lighthouse, which really, they shouldn't be doing in the day, 'cuz that says something bad about the intoxication of the captains... ...oh, right. He's one of those guys that you meet once and know is unique. And smart. And a clever writer."

0 Comments:

Post a Comment

<< Home