Trying to use ServerQuery for a bot for Ts6

Hi , sorry for the disturbance ^^ .

So , i am hosting a teamspeak 6 server on Linux under Fedora Workstation and Docker , and wanted recently to code a bot for my personnal use .

By searching how to do this i found multiples libraries and how to get the server query credentials ( under docker logs ) . I saw aswell some topics as YaTQA ( i didn’t tried it yet , since from what i did read from the website , it is for Ts3 .

The thing is when i code a test request using thoses credentials , i always get returned an error .

It was to know if i missed some points , or it is just that complicated actually knowing TS6 is still in beta .
Thanks in advance :smiley:

Hey :slight_smile:

did you make sure you have the querries and the ports enabled inside the TS6 Container?:slight_smile:

1 Like

eh ! my bad , i checked the yaml file and they’re on comments with a #, imma try again , ty for the tip x)

Well after editing the yaml , stopping the container and relaunching it , i tried again the script still an error .It must be a problem within the code i used i think , i will try to fix it.
Edit : I used Ts3 module for Python , probably the wrong one . i know there is a tsbot module and nio-matrix module ( even tho nio-matrix module feels weird since its not especially designed for ts6 (or at least i believe it is not ) ) , i will test them

Well . nothing worked . Just to know , it is possible to do it with Python right ? Because i tried digging on the forum , and i saw some topics saying there is no support yet for it ?

Ok so after multiples tries , i managed to connect to the webquery ( 10080) ,instead of the ssh one (10022) . I don’t know why tho , since the script and the server are on the same computer . But well at least it works :smiley:

Hey man,

that sounds in fact really weird.
Do you may able to provide some logs of and around the error?
Maybe we can dig through what is actually “broken” :slight_smile:

this one was trough multiples tries , tried first 10022 but connection refused , then tried 10011 but forgot to put 10011:10011 instead of 10011:10022 , and well even tried both so x)
For the docker logs , i dont think he have ever shown within it a line telling i was trying to connect

For the libraries i used mostly Ts3 , tsbot , and matrix-nio ( matrix requiring an url tho it was impossible ) , for Webquery tho i used requests .

For the Telnet error , i believe its disabled by Ts6 for now ? i am not sure i believe i saw that somewhere .

But for the SSH to be honest , i am completely lost . It was my first time trying it , but to be fair i tought since it was on the same computer it wouldnt be that much of a deal

You are completely right telnet is not available in TS6.
Doe’s the same error show up when using ssh-connection?

for the SSH one its connection refused , but when i check docker ps it shows 0.0.0.0:10022 so it should listen , also the server logs shows the query is listening on that port so well x) maybe its due to something internal ?