If there is any tcl script that can invite secondary bot to join a channel when primary bot is down. For example as below;
When hub bot (Primary bot) is down or get disconnected from irc server, then the script will execute to leaf bot (Secondary bot) to join a channel and set -inactive for that channel. Before Primary bot get down or disconnected, channel setting for that channel on secondary bot to be +inactive but when primary bot down, the script will automatically detect that primary bot is disconnecting its botnet connection (consider as diconnecting from irc server) and will automatically set -inactive and join the channel.
Someone can write this tcl script or have any idea to share with us.