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