The current dynamic delay is great for endusers but hosters want to offer their customers custom reconnect intervals in the case of a bad connection or in the case the bot is required for security and has b_client_ignore_antiflood anyway.
[bot.connect]
reconnect_interval = "auto" # current system
```toml
[bot.connect]
reconnect_interval = "30s" # after 30 seconds
```toml
[bot.connect]
reconnect_interval = "-1" # never
etc...
How to turn it off
[bot.connect]
reconnect_interval = [] # off
reconnect_interval = ["30s", "1m", "5m"] # intervals
reconnect_interval = ["30s", "1m", "5m", "repeat"] # or "+" or "loop" to repeat last value indefinitely
That's even better :> i would suggest using repeat last instead of repeat to avoid thinking it would loop over the whole array again
Im thinking about a whole new section for reconnect to allow some other settings maybe :thinking:
[bot.reconnect]
ontimeout = ["30s", "repeat last"]
onkick = [] # wether to also autoreconnect if the bot was kicked
onerror = ["1m"] # wether to force trying to reconnect if the server is reachable but returned an error (ex: max clones/banned)
onshutdown = ["5s", "repeat last"] # when the bot was disconnected because of a server shutdown (in case of a server update or crash)
This would be useful for me. The current setup doesn't allow me to use it. I've quite a interesting predicament myself. I live somewhere where Teamspeak connecting ports are banned by the ISP so I normally connect to TS server via VPN then shut it off . The current reconnecting system is to slow that the TS BOT can't reconnect fast enough.
Feature is pushed to develop
Most helpful comment
Im thinking about a whole new section for reconnect to allow some other settings maybe :thinking: