mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-23 00:25:32 +00: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.
|
||||
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.`);
|
||||
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 a new issue