1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -05:00

Remove .setTimestamp()

This commit is contained in:
AnxietyisReal 2024-01-01 02:10:17 +11:00
parent ee11e6a5e1
commit 79da90cab8

View File

@ -84,11 +84,12 @@ export class UserLevelsSvc {
// Send notification to dcServer's logs channel after cronjob is complete. // 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() (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( .setDescription(MessageTool.concatMessage(
'I have gone ahead and reset everyone\'s rank data.', 'I have gone ahead and reset everyone\'s rank data.',
`There was ${Intl.NumberFormat('en-US').format(performCountBeforeReset)} members in database before reset.` `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 // 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`; const logText = `Resetting LRSstart to \`${newEpoch}\`, saved to config file`;
Logger.console('log', 'DailyMsgs', logText); Logger.console('log', 'DailyMsgs', logText);
(this.client.channels.resolve(this.client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [new this.client.embed() (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!') .setColor(this.client.config.embedColorXmas)
.setDescription(logText).setTimestamp() .setTitle('Happy New Years! Level System is clean!')
.setDescription(logText)
]}).catch(err=>console.log(err)); ]}).catch(err=>console.log(err));
writeFileSync('src/config.json', JSON.stringify(this.client.config, null, 2)); writeFileSync('src/config.json', JSON.stringify(this.client.config, null, 2));
Logger.console('log', 'Cron:resetAllData', 'Job completed'); Logger.console('log', 'Cron:resetAllData', 'Job completed');