From 79da90cab8f9d87466d29fbfa433ad88d7ac71ed Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Mon, 1 Jan 2024 02:10:17 +1100 Subject: [PATCH] Remove .setTimestamp() --- src/models/userLevels.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/models/userLevels.ts b/src/models/userLevels.ts index d260ae1..c53c9ba 100644 --- a/src/models/userLevels.ts +++ b/src/models/userLevels.ts @@ -84,11 +84,12 @@ export class UserLevelsSvc { // Send notification to dcServer's logs channel after cronjob is complete. (this.client.channels.resolve(this.client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [new this.client.embed() - .setColor('#A3FFE3').setTitle('Yearly data reset has begun!') + .setColor('#A3FFE3') + .setTitle('Yearly data reset has begun!') .setDescription(MessageTool.concatMessage( 'I have gone ahead and reset everyone\'s rank data.', `There was ${Intl.NumberFormat('en-US').format(performCountBeforeReset)} members in database before reset.` - )).setTimestamp() + )) ]}); // Reset LRSstart to current Epoch and save it to config file @@ -97,8 +98,9 @@ export class UserLevelsSvc { const logText = `Resetting LRSstart to \`${newEpoch}\`, saved to config file`; Logger.console('log', 'DailyMsgs', logText); (this.client.channels.resolve(this.client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [new this.client.embed() - .setColor(this.client.config.embedColorXmas).setTitle('Happy New Years! Level System is clean!') - .setDescription(logText).setTimestamp() + .setColor(this.client.config.embedColorXmas) + .setTitle('Happy New Years! Level System is clean!') + .setDescription(logText) ]}).catch(err=>console.log(err)); writeFileSync('src/config.json', JSON.stringify(this.client.config, null, 2)); Logger.console('log', 'Cron:resetAllData', 'Job completed');