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');