Ts3audiobot: Reconnect on server Shutdown

Created on 8 Sep 2017  路  6Comments  路  Source: Splamy/TS3AudioBot

Hello!
As I understand now bot instance is disconnecting on it's shutdown and doesn't try to reconnect again.
It will be awesome to add feature to trying reconnect bot on server disconnect - for examples, m times with n seconds between reconnects.
Thank you!

enhancement

Most helpful comment

It would be neat if the following was in the config

# Wether the bot should try to reconnect after any kind of connection interruption
QueryConnection::AutoReconnect=True
# The amount of retries for AutoReconnect before giving up (0 means infinite)
QueryConnection::AutoReconnectMaxRetries=0
# The delay between reconnect attempts in milliseconds
QueryConnection::AutoReconnectDelay=5000

also if you start the bot and you get client_too_many_clones_connected and when the server is full it would be nice if the bot auto initates the reconnection until it manages to get on the server.

All 6 comments

I second this as a useful feature which can be enabled!

For now I just made a BASH script which daemonizes the process which can check if it is online or not as a solution.
It's based on the TeamSpeak 3 server start script.
You can find it here: TS3AudioBot_startscript.sh

Hopefully this is useful to you, and possibly resolves your issue even!

Kind regards.

Thank you!

Yeah auto reconnect should be a nice feature, I'll see what I can do

It would be a much better solution than my BASH script which must be manually invoked..

It would be neat if the following was in the config

# Wether the bot should try to reconnect after any kind of connection interruption
QueryConnection::AutoReconnect=True
# The amount of retries for AutoReconnect before giving up (0 means infinite)
QueryConnection::AutoReconnectMaxRetries=0
# The delay between reconnect attempts in milliseconds
QueryConnection::AutoReconnectDelay=5000

also if you start the bot and you get client_too_many_clones_connected and when the server is full it would be nice if the bot auto initates the reconnection until it manages to get on the server.

Since multiinstance the bot will automatically reconnect.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CookieCr2nk picture CookieCr2nk  路  4Comments

lgund picture lgund  路  6Comments

Edith445544986 picture Edith445544986  路  4Comments

Najsr picture Najsr  路  3Comments

lgund picture lgund  路  3Comments