maybe i am unclear what exactly you are trying to do...have the leaf get a random channel from the hub then join it? I don't understand why you would want to do this via tcl, instead of using the share module...could you be more specific in what it is you wanna accomplish, please?
On the hub i have a script which i want to be able to msg it something like !add #channel (this bit i have got) then it will randomly select one of the leaf bots to add that channel to the channel list of that leaf bot. (though i dont have the syntax/code which makes the bot that was selected to add that channel to its channel list)
Does this need to be in another script or can it be done from the same script which contains the !add #channel proc which selects the bot randomly using the code above which then after it randomly selects a bot tells the leafbot that was randomly selected to add that channel to its list.
Tom65789 wrote:Does this need to be in another script or can it be done from the same script which contains the !add #channel proc which selects the bot randomly using the code above which then after it randomly selects a bot tells the leafbot that was randomly selected to add that channel to its list.
to answer the main question, you already had the command correct, channel add #blah, and no, it doesn't need to be a seperate script at all. In fact, I think it would be a rather good idea to keep that procedure together with your 'main' tcl.
but using channel add #channel makes the bot using the script join, and not one of the random leaf bots it selects. how do you make another bot on the botnet add that channel?