Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setInterval(resetAtMidnight, 450);
  2.  
  3. function resetAtMidnight() {
  4.  
  5.     var min = new Date().getMinutes();
  6.     var sec = new Date().getSeconds();
  7.  
  8.     if(min < 1) {
  9.         if(sec < 5) {
  10.             users.map(user => {
  11.                 user.quests = quests.map(i => {return 0});
  12.                 user.limitdon.timerdon = users.map(i => {return 0});
  13.             });
  14.         }
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement