You would use a combination of commands for sending messages to other bots over the botnet (putbot, putallbots) and "bind bot" to trigger a proc on the bot that receives the command.
It would be possible to do it through netbots.tcl, but it is basically a more complex version of the above, so if you don't already have some experience writing scripts that send/receive things over the botnet, you probably don't want to try making your script through netbots.
Here is an example of using putbot and bind bot:
Code: Select all
proc strex_receive {frombot command text} {
putlog "I received from $frombot the command '$command' with the argument '$text'"
return 0
}
bind bot - testcmd strex_receive
Load that on one bot, and on another bot that is on the botnet make sure the .tcl command is enabled (check it's not being unbound in the config file) and type
.tcl putbot <otherbot> "testcmd arguments go here". That is the best way to learn how it all works.
I'm not sure if the suninet tcl guide deals with this topic -- but have a look there too.