I wanna add this tricky feature to my Eggdrop, but unfortunately, I'm not very into TCL programming. Thats why I could use a little help.. Thanks in advance!
Here the thing:
I want my Eggdrop to save alle channel visitors, that are in a specific channel right now, in a specific file every 30 secs.
you are on the wrong forum, and your request is kind of pointless, since the file will get overwritten every time save is done (or ridiculously big if appending data), but anyway, here's a Tcl script that does that (every minute):
bind time - * foo
proc foo {m h d mo y} {
if [botonchan #chan] {
set f [open visitors.txt w]
foreach v [chanlist #chan] {
puts $f $v![getchanhost $v #chan]
}
close $f
}
}
sorry bout posting it into the wrong forum and thanks for helping me anyways..
It makes sense that the file is overwritten every minute, because a PHP content grabber grabs the data and uses them to update a website with a list of all the users that are in the channel.
another question:
Where do I have to place it whithin the eggdrop script? anywhere ?