All pastes #474809 Raw Edit

Rainbyte

public python v1 · immutable
·published 2007-05-07 00:46 UTC
rendered paste body
# amarok_xchat by sven kissner (aka chimaera)## simple script to display the song currently played in amarok__module_name__ = "amarok_xchat" __module_version__ = "0.2" __module_description__ = "python module for xchat to display titles playing in amarok"  import xchat import commandsdef amarok_send(word, word_eol, userdata):    xchat.command('me is listening to ' + commands.getoutput('dcop amarok player artist') + " - " + commands.getoutput('dcop amarok player title'))    return xchat.EAT_ALLxchat.hook_command('amarok', amarok_send)xchat.prnt('amarok_xchat v0.2 loaded..')