• 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.

Wierd Result From Query

Sheerpython

Member
Hello tried creating a small script for my bot to check how long people are alone in a channel in my ts3 server.
The query below is what I am trying to run and this part works.
Code:
if (dbc) dbc.query("SELECT * FROM alone_time WHERE tsid = '" + client.uid() + "';" , function(error, result) {
  engine.log(result);
});
But the part that is giving me problems is what it returns in the logs.
[{"time":[49,50,51,49,50,51,49,50,51],"tsid":[90,72,82,109,43,82,69,115,122,112,68,112,117,50,82,101,111,79,51],"user_name":[65,110,97,98,111,108,105,102,97,110,116]}]
Its suppost to return something like this: {"time":'123123123', "tsid":'ZHRm+REszReoO330UWiL5o=', "user_name":'testuser'}

Am i just doing something wrong or did i miss something in the documentation?
If someone knows the answer please comment :)

Greetings,
Roy.
 
Top