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

Compare commits

..

No commits in common. "ee38c8c09db52e9cc71baaba765b53242f40e6b1" and "b553c5b8b33a6bd8b85e315341c99ed7a4ab333e" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ setInterval(async()=>{
await client.dailyMsgs.newDay(formattedDate, total);
Logger.console('log', 'DailyMsgs', `Pushed [${formattedDate}, ${total}]`)
// Send notification to #bot-log that the data has been pushed to database.
// Send notification to #bot-logs that the data has been pushed to database.
const commands = await client.guilds.cache.get(client.config.dcServer.id)?.commands.fetch();
if (commands) (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
new client.embed().setDescription(`Pushed the following\ndata to </rank leaderboard:${commands.find(x=>x.name === 'rank').id}>`).setFields(

View File

@ -78,7 +78,7 @@ export class UserLevelsSvc {
cron.schedule('0 11 1 1 *', async()=>{
Logger.console('log', 'Cron', 'Running job "resetAllData", this is activated every 1st of January');
const performCountBeforeReset = await this.model.count();
Logger.console('log', 'Cron:resetAllData', `Counted ${performCountBeforeReset.toLocaleString()} members before reset`);
Logger.console('log', 'Cron:resetAllData', `Counted ${performCountBeforeReset.toLocaleString()} documents before reset`);
await this.client.dailyMsgs.nukeDays();
await this.model.drop().then(async()=>await this.model.sync());
@ -87,7 +87,7 @@ export class UserLevelsSvc {
.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.`
`There was ${Intl.NumberFormat('en-US').format(performCountBeforeReset)} documents in database before reset.`
)).setTimestamp()
]});