Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(resetAtMidnight, 450);
- function resetAtMidnight() {
- var min = new Date().getMinutes();
- var sec = new Date().getSeconds();
- if(min < 1) {
- if(sec < 5) {
- users.map(user => {
- user.quests = quests.map(i => {return 0});
- user.limitdon.timerdon = users.map(i => {return 0});
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement