okay, this is what my friend is wanting, a fserve voicing script that does time inervals... but I had helped me a little on this, and here is what we came up with so far... I'm thinking that making a *Pool* to help with anything that would have [] in them that would kill the bot. I'm sure useing \[\blah\]\ would fix it.. but there has to be a simplier way to do that. I did a search to try to find some other ways.. didn't really find anything that helped me. cause it looked that a couple have some what of the same code I was using. guess its just simple to do it a easy way.. I know the rules say no info on "XDCC" stuff. but he wants to search the output of that, and voice it as well.. I told him i could be more annoying than he wants to admit. But I'm sure I can help him figure that part out later. Here is what he came up with.
proc fvoice:list {min hour day month year} {
putserv "PRIVMSG #blah :Now Checking for new Servers"
putserv "PRIVMSG #blah :!list"
}
proc voice {nick uhost hand chan args} {
{ pushmode #blah +v $nick }
}
just a simple little code.. but he wants to check for cheaters as well. I'm not a big fan of stuff like this, but i told him I would ask around for some help.
sorry its taken me awhile to post back, i haven't been able to get online much.
So what your suggestion should be able to take out things like [], and numbers and such as the mirc color codes. if they are stripped?
I have noticed when it picks up sutff within [] it will kill the bot, cause it things its a string command. would just make another little proc to handle something like this work best or no ?
okay i've seem to hit a snag, i got the !list to come up in the channel, the bot see's all the respondses, but ummm..... doesn't voice... guess I messed something up here... there's the code
bind time - "00 *" do:list
bind time - "30 *" do:list
bind notc "*" fvoice:pool
set fvoice:pool:list {
"*File Server Online*"
"*FTP Online*"
"*File Servers Online*"
"*file server online*"
"*(*«*G*x*S*erve*»*)*"
"*(TDCC) Trigger*"
"*««*Server*»»*Trigger*"
"*Fserve Active*"
}
bind pub n !check do:list
proc do:list {min hour day month year} {
putserv "PRIVMSG #chan :\002Now CHecking for New Servers\002"
putserv "PRIVMSG #chan :!list"
}
proc fvoice:pool {nick uhost hand chan arg} {
global fvoice:pool:list
foreach fvoice:pool $fvoice:pool:list {
if {[string match -nocase $fvoice:pool $arg]} {
pushmode #chan +v $nick}
}
}
}
i swear it feels like I went back to n00bie level on tcl.. it sucks when you can't remember, medication does that to you i guess... anyways.. I'm thinking of adding a little bit of error checking, but i kinda want to get this working first. thanks to anyone and everyone that can help.