Implement function to set up multiple relays

This commit is contained in:
Mark Veidemanis 2019-10-08 21:11:04 +01:00
parent 33cb173db6
commit 31c9e64790
1 changed files with 7 additions and 0 deletions

View File

@ -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")