-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clientlist filter not working for me #12
Comments
Looking at the documentation of What you could try is to filter out your desired client after getting the list. Here is a small example that uses the query.send('clientlist')
.then(parseList)
.then(list => list.find(client => client.client_type == 1))
.then(console.log); When running it:
|
I just have an php example on ts3-framework, where ip filtering is working, will be nice if we will have this in teamspeak-query (sorry for english) |
Hey, can you send me a link to that example? No worries about your english, at least for me it is totally understandable :) |
https://gitlab.com/NOFEAR/TS3-Client-Verifired/blob/master/index.php#L53 |
I need to sign in to view the repo, is it private? If yes, you could post only the relevant code without revealing too much (I suppose it's private for a reason :p). |
So this should work (out of my head, I'm in a hurry): query.send('clientlist', '-ip')
.then(parseList)
.then(list => list.find(client => client.client_type == 0 && client.connection_client_ip == ip))
.then(console.log); |
it's working :O |
Nice, I'm glad I could help :) |
Hi guys, i tryed use
where ip is some ip
and it's return me list of all users, instead of 1 user with that ip
Also i noticed it's returns users with client_type 1.
So for some reason for me filter not working.
Or i make something wrong?
Pls can some help me?
The text was updated successfully, but these errors were encountered: