ok, i have a botnet of 3 bots, and i have a script that is loaded on all of them. It has features such as !op and !voice and !save and stuff like that. but i added a variable to the script that adds an abbreviation to the commands, so they are now !toe-op !toe-deop and !toe-save; and so on. and on each bot the abbreviation is different. but there still is !help on all of them. how do i get just one bot to respond to !help and after that one bot responds, the others dont notice the $nick
set semaphor 0
bind pub - !help pub_help
proc pub_help {n u h c t} {
if !$::semaphor {
# help request not being handled by another bot
# notify all bots and proceed
putallbots helping
puthelp "notice $n :<help stuff here>"
} else {
# request already being handled, ignore it
# clear the semaphor after small delay
utimer 5 {set ::semaphor 0}
}
}
bind bot - helping {set semaphor 1;#}
of course, this will work effectively only if your your botnet lag is less than the IRC lag (which is usually the case)
naturally, this scriptlet can be elaborated to distinguish between help requests coming (almost) simultaneously from different users, but I don't think you are that picky