Introduction
This really simple hack enables your Eggdrop IRC bot to show stream information like the current stream status, listener peak, genre and currently played track parsed from a ShoutCast info page. ShoutCast is an MP3-Streaming server. I wrote this script last year for my little brother Jan when he was active on IRC doing some coding for streaming internet radios which where using ShoutCast (For newer projects and free projects I would personally recommend IceCast which is an actively developed OpenSource streaming server for Ogg Vorbis and MP3).The script parses the informational website of the stream and extracts the information and spits them into the channel.
Requirements
The ShoutCast script does not need that much. As I am more familiar with Perl than with TCL I have decided to implement only the wrapper in TCL and have the real functionality in a Perl script that the TCL wrapper calls. This is inefficient if it's called often. But in my the environment my brother uses this script it it works just fine.- Eggdrop
- Perl with LWP::UserAgent
News
2004/01/26Initial public release.
Installation
Make sure that Perl 5.6.0 or newer is installed and that the CPAN module LWP::UserAgent is installed and in one of the dirs in @INC.I assume that you already setup your Eggdrop successfully and that the underlying system is some kind of Unix or Linux.
Copy the files in the archive in one directory. Open shout.tcl in your favorite editor. There are two marks. One is "###CONFIGSTART###" and one is "###CONFIGEND###". Everything between these two has to be modified to match your environment. See the comments in the file for a description of the settings.
Now configure Eggdrop to load the script. Add a line like
source /server/irc/eggdrop/scripts/eggshout/shout.tclto your config file.
If you rehash the Eggdrop now the bot should answer.
Download
The Eggdrop ShoutCast script is released and distributed under the terms of the GNU General Public License (GPL).By downloading and/or using the software you agree to this license!
You may download the install file provided as a .zip and as a .tar.gz file.
Latest development version is 0.2.
eggshout 0.2 | .tar.gz (2330 Bytes) | .zip (3713 Bytes) |