# (c) DiESELMuSA - DiESELMuS @ EFnet or DiESELMuSA@gmail.com __module_name__ = "amaroK-np" __module_version__ = "1.01" __module_description__ = "amaroK-np script.. Do /amarok or /np to show the song you are currently playing" import xchat import commands def amarok_dcop_xchat(word, word_eol, userdata): xchat.command('me is listening to ' + commands.getoutput('dcop amarok player artist') + " - " + commands.getoutput('dcop amarok player title') + " [" + commands.getoutput('dcop amarok player album') + "][" + commands.getoutput('dcop amarok player totalTime') + "]") return xchat.EAT_ALL xchat.hook_command('amarok', amarok_dcop_send) xchat.hook_command('np', amarok_dcop_send) xchat.prnt('amaroK-np v1.01 by DiESELMuSA loaded..')