This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
svahn
- Voice
- Posts: 19
- Joined: Sun May 19, 2002 8:00 pm
- Location: Sweden
-
Contact:
Post
by svahn »
i have a eggdrop.
and a tcl script who connects to a shoutcast server and gets the xmlstats.
how can i do so the bot just types the current Listeners ..in the channel (right now he types the whole xmlstat)
The listener peak looks like this.
<CURRENTLISTENERS>21</CURRENTLISTENERS>
thnx!
<font size=-1>[ This Message was edited by: svahn on 2002-05-20 11:46 ]</font>
-
l
loze
Post
by loze »
Code: Select all
if {[string match "<CURRENTLISTENERS>*" $line]} {
regsub -all "<CURRENTLISTENERS>" $line "" line
regsub -all "</CURRENTLISTENERS>" $line "" line
putserv "PRIVMSG $chan : $line"
}
this should work
