Answer the question
In order to leave comments, you need to log in
How to fix stopwatch in status?
Hey!
client.on('ready', () => {
var v=0;
var m=0;
var c=0;
var timer1 = client.setInterval(function () {
if(v > 60) {
var m = m + 1
var v = 0
};
if(m > 60) {
var c = c + 1;
var m = 0;
var v = 0;
};
} ,1000)
var timer = client.setInterval(function () {
client.user.setActivity(`за сервером уже ${c}:${m}:${v}`, {type: 'WATCHING'});
var v = v + 1
},1000)
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question