Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
149 stars 20 forks source link

IsTalker doesn't change when user talks #189

Closed timothy02 closed 1 year ago

timothy02 commented 1 year ago

Describe the bug IsTalker doesn't change when user talks. It is set to false all the time.

To Reproduce

const clients = await teamspeak.clientList({ clientType: 0 })
  clients.forEach(client => {
    setInterval(() => {
      console.log(client.isTalker)
    }, 100)
  })

Expected behavior If I understand the field correctly it should turn true when user speaks.

Versions used

Does this function work? Or it represents something else? I want to check if user is currently speaking and when they are I want to send a request to another server. Is it possible to achieve with this (or any other TS3) library?

Multivit4min commented 1 year ago

this will only get true when you also reload the clientList, otherwise it will stay false

timothy02 commented 1 year ago

I tried to reload clientList every X milliseconds. Still the same outcome. It stays false even when I'm constantly talking while connecting to the server with bot.

timothy02 commented 1 year ago

I found out that client.propcache.clientFlagTalking is changing properly. That's what I was looking for.