Use setInterval on updatePresence instead of setTimeout
All checks were successful
CI / CI (push) Successful in 1m24s

This commit is contained in:
SileNce5k 2025-06-01 11:18:24 +02:00
parent ac03b9d136
commit e06c6640b7
Signed by: SileNce
GPG key ID: B0A142BB4291B204
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,11 @@ const checkTimer = require('../util/timer/checkTimer');
const updatePresence = require('../util/updatePresence');
module.exports = function(client, enableLoginMessage, loginChannel, loginMessage) {
updatePresence(client)
setInterval(() => {
updatePresence(client)
}, 60 * 1000);
console.log('Ready!');
if (enableLoginMessage === true)
try{