Results 1 to 1 of 1
-
04-07-2004, 05:01 PM #1Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
i need help with the xmms perl modules
i've got a script that i use with xchat2, that reports what i'm listening to to the irc channel in a form of /me listens to $songname .
here is that script:
Code:#!/usr/local/bin/perl5.8.2 use Xmms::Remote (); IRC::register ("XMMS-node", "1.0", "", ""); IRC::add_command_handler("xmms", "xmms_handler"); $xmms_remote = Xmms::Remote->new(); sub xmms_handler { $title = $xmms_remote->get_playlist_title; $title =~ s/_[^_]*_[^_]*_/ - /; IRC::command("/me listens to $title"); return 1; }
The ideal script would print out the data in this form:
/me listens to artist - whatever song [1:50/5:75]
Any help you could provide would be appreciated, if you have a completely different script that can provide the functionality that i want, then just post it and i'll copy and paste and create it using vi.
Thanks a bunch.
Love,
Ub3r