mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-07-08 22:15:09 +00:00
Fixed time string
This commit is contained in:
6
bot.ts
6
bot.ts
@@ -121,7 +121,7 @@ function scheduleNextJoin(){
|
||||
|
||||
log(randomInterval);
|
||||
|
||||
nextPlayBackTime = new Date(new Date().getTime() + randomInterval * 60000).toString();
|
||||
nextPlayBackTime = new Date(new Date().getTime() + randomInterval * 60000).toTimeString();
|
||||
|
||||
const minutes = randomInterval % 60;
|
||||
const hours = Math.floor(randomInterval / 60);
|
||||
@@ -144,8 +144,8 @@ function log(waitTime: number){
|
||||
console.log(
|
||||
LoggerColors.Cyan, `
|
||||
Wait time: ${waitTime} minutes,
|
||||
Current time: ${currentTime.toString()},
|
||||
Next join time: ${nextJoinTime.toString()},
|
||||
Current time: ${currentTime.toTimeString()},
|
||||
Next join time: ${nextJoinTime.toTimeString()},
|
||||
Cron: ${minutes} ${hours == 0 ? '*' : hours } * * *`
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user