Implement function to set up multiple relays
This commit is contained in:
parent
33cb173db6
commit
31c9e64790
|
@ -64,3 +64,10 @@ def provisionRelay(num, network):
|
|||
if main.config["ConnectOnCreate"]:
|
||||
main.network[network].start_bot(num)
|
||||
return alias
|
||||
|
||||
def provisionMultipleRelays(net, relaysNeeded):
|
||||
for i in range(1, relaysNeeded):
|
||||
num, alias = main.network[net].add_relay()
|
||||
provisionRelay(num, net)
|
||||
main.saveConf("network")
|
||||
|
||||
|
|
Loading…
Reference in New Issue