Use setInterval on updatePresence instead of setTimeout
All checks were successful
CI / CI (push) Successful in 1m24s
All checks were successful
CI / CI (push) Successful in 1m24s
This commit is contained in:
parent
ac03b9d136
commit
e06c6640b7
2 changed files with 5 additions and 5 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue