• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

[Bug Report] Client type function is giving wrong result

Relentless

Well-Known Member
Contributor
SinusBot version: 1.0.0-alpha.5-9767656
TS-Client: 3.2.3
TS-Server: 3.6.1

https://sinusbot.github.io/scripting-docs/#clienttype
Documentation says that 0 = Query and 1 = Normal.
However, if checking a normal user, it gives back 0. I wasn't able to check if it returns a 1 when a query is checked
since the sinusbot is not subscribing to the queries and therefor not seeing them. I could mange to do that if the
query writes a message to the sinusbot which triggers an event but I have no query which could handle that.
So either there is a mistake in the documentation and the numbers have to be swapped or the function is broken.
That depends on the return value of the function when an actual query is checked. Would need somebody to test.

Greetz,
Relentless
 
Top