Nicer
Member
Hello there, I have a problem with getting client's idle time. Well the problem is that I'm getting some random values instead of getting right idle time.
This code returns a number which seems to be increasing every second. (Even when my idle time got back to ~0 s after typing)
SinusBot 0.9.18-8499d2c; 64bit Win version; 6Gigs of ram; laptop i5
PHP:
sinusbot.on('chat', function (ev) {
var backend = require('backend');
var client = backend.getClientByUniqueID(ev.clientUid);
sinusbot.chatPrivate(client.id(), client.getIdleTime());
This code returns a number which seems to be increasing every second. (Even when my idle time got back to ~0 s after typing)
SinusBot 0.9.18-8499d2c; 64bit Win version; 6Gigs of ram; laptop i5