The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
hack request - a plugin to print the contents of a text file and output into postbit
reason?
xmms and winamp both have plugins to print the current song and artist to a file. If vB could read this file then it could print what the poster is currently listening to. of course this would probably be a pain in the toosh but I suppose any hack this good (in mine eyes) is worth atleast requesting. here is the plugin info for the xmms changer Code:
#!/usr/bin/perl open (TEMPFILE, "> /tmp/xmms.song") or die "Couldn't open the local temporary file!!"; print TEMPFILE "Now Playing: "; for (@ARGV) { print TEMPFILE " $_ "; } Code:
#!/usr/bin/perl -w $start = "true"; IRC::register("Now-Playing", "0.1", "", ""); IRC::add_command_handler( "np", "print_to_channel"); sub print_to_channel { open(INFO, "/tmp/xmms.song"); @lines = <INFO>; IRC::command( $lines[0] ); close(INFO); return 1; } http://drpizza.arsware.org/nowplaying/ :banana: so can we get a go at it? -Dom |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|