mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Remove .setTimestamp()
This commit is contained in:
parent
f46bc12be8
commit
1db327dd49
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user