mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-25 22:55:40 +01:00
Updated time the command would run to account for UTC.
This commit is contained in:
parent
48cd4cd9ea
commit
5514b5996d
@ -39,7 +39,8 @@ client.on("guildMemberRemove", (member) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Output the stats for app.stats every 24 hours.
|
// Output the stats for app.stats every 24 hours.
|
||||||
schedule.scheduleJob({ hour: 23, minute: 59 }, function(){
|
// Server is in UTC mode, 11:30 EST would be 03:30 UTC.
|
||||||
|
schedule.scheduleJob({ hour: 3, minute: 30 }, function(){
|
||||||
logger.info(`Here are today's stats for ${(new Date()).toLocaleDateString()}! ${app.stats.joins} users have joined, ${app.stats.leaves} users have left, ${app.stats.warnings} warnings have been issued.`);
|
logger.info(`Here are today's stats for ${(new Date()).toLocaleDateString()}! ${app.stats.joins} users have joined, ${app.stats.leaves} users have left, ${app.stats.warnings} warnings have been issued.`);
|
||||||
app.logChannel.sendMessage(`Here are today's stats for ${(new Date()).toLocaleDateString()}! ${app.stats.joins} users have joined, ${app.stats.leaves} users have left, ${app.stats.warnings} warnings have been issued.`);
|
app.logChannel.sendMessage(`Here are today's stats for ${(new Date()).toLocaleDateString()}! ${app.stats.joins} users have joined, ${app.stats.leaves} users have left, ${app.stats.warnings} warnings have been issued.`);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user