Script that check if clients connected to a server within x hours

senheiser

Member
Joined
May 4, 2016
Messages
41
Reaction score
6
Points
58
Hey,

is it possible to write a script that check each server of my instance if users connected within x hours?
I know that this is possible for one server alone (i implemented that feature with the ts3admin.class) but i need it for every server...

Some suggessions? :)
 

hacxx

Member
Joined
Apr 10, 2022
Messages
10
Reaction score
0
Points
36
Yes, it’s definitely possible! You can loop through all servers on your instance using the API, then for each server, check the client connection logs or use ts3admin to get the list of connected clients with their timestamps. Aggregate this data to see who connected within your specified timeframe. Automate this with a script running periodically to cover all servers. If your current method works for one server, just extend it with a loop over all servers fetched via the instance’s server list.
 
Top